home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2004 October / My Disc.iso / patch / Unreal Tournament 2004 / ut2004-winpatch3323.exe / UT2004-Patch / System / UnrealGame.u / Bot_DeathMatch_ScriptText.TextBuffer < prev    next >
Unknown  |  2004-09-07  |  54.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 6c e1 06 2f 2f 3d 3d 3d |........|l..//===|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 20 44 |========|==..// D|
|00000060| 65 61 74 68 4d 61 74 63 | 68 0d 0a 2f 2f 3d 3d 3d |eathMatc|h..//===|
|00000070| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 63 6c 61 73 |========|==..clas|
|000000c0| 73 20 44 65 61 74 68 4d | 61 74 63 68 20 65 78 74 |s DeathM|atch ext|
|000000d0| 65 6e 64 73 20 55 6e 72 | 65 61 6c 4d 50 47 61 6d |ends Unr|ealMPGam|
|000000e0| 65 49 6e 66 6f 0d 0a 09 | 48 69 64 65 44 72 6f 70 |eInfo...|HideDrop|
|000000f0| 44 6f 77 6e 0d 0a 09 43 | 61 63 68 65 45 78 65 6d |Down...C|acheExem|
|00000100| 70 74 0d 0a 20 20 20 20 | 63 6f 6e 66 69 67 3b 0d |pt.. |config;.|
|00000110| 0a 0d 0a 23 65 78 65 63 | 20 4f 42 4a 20 4c 4f 41 |...#exec| OBJ LOA|
|00000120| 44 20 46 49 4c 45 3d 54 | 65 61 6d 53 79 6d 62 6f |D FILE=T|eamSymbo|
|00000130| 6c 73 5f 55 54 32 30 30 | 33 2e 75 74 78 0d 0a 23 |ls_UT200|3.utx..#|
|00000140| 65 78 65 63 20 4f 42 4a | 20 4c 4f 41 44 20 46 49 |exec OBJ| LOAD FI|
|00000150| 4c 45 3d 54 65 61 6d 53 | 79 6d 62 6f 6c 73 2e 75 |LE=TeamS|ymbols.u|
|00000160| 74 78 09 09 09 09 2f 2f | 20 6e 65 65 64 65 64 20 |tx....//| needed |
|00000170| 72 69 67 68 74 20 6e 6f | 77 20 66 6f 72 20 4c 69 |right no|w for Li|
|00000180| 6e 6b 20 73 79 6d 62 6f | 6c 73 2c 20 65 74 63 2e |nk symbo|ls, etc.|
|00000190| 0d 0a 0d 0a 76 61 72 20 | 63 6f 6e 66 69 67 20 69 |....var |config i|
|000001a0| 6e 74 20 09 4e 65 74 57 | 61 69 74 3b 20 20 20 20 |nt .NetW|ait; |
|000001b0| 20 20 20 2f 2f 20 74 69 | 6d 65 20 74 6f 20 77 61 | // ti|me to wa|
|000001c0| 69 74 20 66 6f 72 20 70 | 6c 61 79 65 72 73 20 69 |it for p|layers i|
|000001d0| 6e 20 6e 65 74 67 61 6d | 65 73 20 77 2f 20 62 57 |n netgam|es w/ bW|
|000001e0| 61 69 74 46 6f 72 4e 65 | 74 50 6c 61 79 65 72 73 |aitForNe|tPlayers|
|000001f0| 20 28 74 79 70 69 63 61 | 6c 6c 79 20 74 65 61 6d | (typica|lly team|
|00000200| 20 67 61 6d 65 73 29 0d | 0a 76 61 72 20 67 6c 6f | games).|.var glo|
|00000210| 62 61 6c 63 6f 6e 66 69 | 67 20 69 6e 74 09 4d 69 |balconfi|g int.Mi|
|00000220| 6e 4e 65 74 50 6c 61 79 | 65 72 73 3b 20 2f 2f 20 |nNetPlay|ers; // |
|00000230| 68 6f 77 20 6d 61 6e 79 | 20 70 6c 61 79 65 72 73 |how many| players|
|00000240| 20 6d 75 73 74 20 6a 6f | 69 6e 20 62 65 66 6f 72 | must jo|in befor|
|00000250| 65 20 6e 65 74 20 67 61 | 6d 65 20 77 69 6c 6c 20 |e net ga|me will |
|00000260| 73 74 61 72 74 0d 0a 76 | 61 72 20 67 6c 6f 62 61 |start..v|ar globa|
|00000270| 6c 63 6f 6e 66 69 67 20 | 69 6e 74 09 52 65 73 74 |lconfig |int.Rest|
|00000280| 61 72 74 57 61 69 74 3b | 0d 0a 76 61 72 20 67 6c |artWait;|..var gl|
|00000290| 6f 62 61 6c 63 6f 6e 66 | 69 67 20 62 6f 6f 6c 09 |obalconf|ig bool.|
|000002a0| 62 54 6f 75 72 6e 61 6d | 65 6e 74 3b 20 20 2f 2f |bTournam|ent; //|
|000002b0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 70 6c 61 79 65 | number |of playe|
|000002c0| 72 73 20 6d 75 73 74 20 | 65 71 75 61 6c 20 6d 61 |rs must |equal ma|
|000002d0| 78 70 6c 61 79 65 72 73 | 20 66 6f 72 20 67 61 6d |xplayers| for gam|
|000002e0| 65 20 74 6f 20 73 74 61 | 72 74 0d 0a 0d 0a 76 61 |e to sta|rt....va|
|000002f0| 72 20 67 6c 6f 62 61 6c | 63 6f 6e 66 69 67 20 62 |r global|config b|
|00000300| 6f 6f 6c 09 62 41 75 74 | 6f 4e 75 6d 42 6f 74 73 |ool.bAut|oNumBots|
|00000310| 3b 09 2f 2f 20 4d 61 74 | 63 68 20 62 6f 74 73 20 |;.// Mat|ch bots |
|00000320| 74 6f 20 6d 61 70 27 73 | 20 72 65 63 6f 6d 6d 65 |to map's| recomme|
|00000330| 6e 64 65 64 20 62 6f 74 | 20 63 6f 75 6e 74 0d 0a |nded bot| count..|
|00000340| 76 61 72 20 67 6c 6f 62 | 61 6c 63 6f 6e 66 69 67 |var glob|alconfig|
|00000350| 20 62 6f 6f 6c 09 62 43 | 6f 6c 6f 72 65 64 44 4d | bool.bC|oloredDM|
|00000360| 53 6b 69 6e 73 3b 0d 0a | 0d 0a 76 61 72 20 67 6c |Skins;..|..var gl|
|00000370| 6f 62 61 6c 63 6f 6e 66 | 69 67 20 62 6f 6f 6c 09 |obalconf|ig bool.|
|00000380| 62 50 6c 61 79 65 72 73 | 4d 75 73 74 42 65 52 65 |bPlayers|MustBeRe|
|00000390| 61 64 79 3b 2f 2f 20 70 | 6c 61 79 65 72 73 20 6d |ady;// p|layers m|
|000003a0| 75 73 74 20 63 6f 6e 66 | 69 72 6d 20 72 65 61 64 |ust conf|irm read|
|000003b0| 79 20 66 6f 72 20 67 61 | 6d 65 20 74 6f 20 73 74 |y for ga|me to st|
|000003c0| 61 72 74 0d 0a 76 61 72 | 20 63 6f 6e 66 69 67 20 |art..var| config |
|000003d0| 62 6f 6f 6c 09 09 09 62 | 46 6f 72 63 65 52 65 73 |bool...b|ForceRes|
|000003e0| 70 61 77 6e 3b 0d 0a 76 | 61 72 20 63 6f 6e 66 69 |pawn;..v|ar confi|
|000003f0| 67 20 62 6f 6f 6c 09 09 | 09 62 41 64 6a 75 73 74 |g bool..|.bAdjust|
|00000400| 53 6b 69 6c 6c 3b 0d 0a | 76 61 72 20 63 6f 6e 66 |Skill;..|var conf|
|00000410| 69 67 20 62 6f 6f 6c 09 | 09 09 62 41 6c 6c 6f 77 |ig bool.|..bAllow|
|00000420| 54 61 75 6e 74 73 3b 0d | 0a 76 61 72 20 63 6f 6e |Taunts;.|.var con|
|00000430| 66 69 67 20 62 6f 6f 6c | 09 09 09 62 41 6c 6c 6f |fig bool|...bAllo|
|00000440| 77 54 72 61 6e 73 3b 0d | 0a 76 61 72 20 62 6f 6f |wTrans;.|.var boo|
|00000450| 6c 20 62 44 65 66 61 75 | 6c 74 54 72 61 6e 73 6c |l bDefau|ltTransl|
|00000460| 6f 63 61 74 6f 72 3b 0d | 0a 76 61 72 20 62 6f 6f |ocator;.|.var boo|
|00000470| 6c 20 62 4f 76 65 72 72 | 69 64 65 54 72 61 6e 73 |l bOverr|ideTrans|
|00000480| 6c 6f 63 61 74 6f 72 3b | 09 09 2f 2f 20 66 6f 72 |locator;|..// for|
|00000490| 20 6d 75 74 61 74 6f 72 | 73 20 74 6f 20 66 6f 72 | mutator|s to for|
|000004a0| 63 65 20 74 72 61 6e 73 | 6c 6f 63 61 74 6f 72 20 |ce trans|locator |
|000004b0| 6f 6e 0d 0a 0d 0a 76 61 | 72 20 67 6c 6f 62 61 6c |on....va|r global|
|000004c0| 63 6f 6e 66 69 67 20 62 | 6f 6f 6c 20 20 20 20 62 |config b|ool b|
|000004d0| 57 61 69 74 46 6f 72 4e | 65 74 50 6c 61 79 65 72 |WaitForN|etPlayer|
|000004e0| 73 3b 20 20 20 20 20 2f | 2f 20 77 61 69 74 20 75 |s; /|/ wait u|
|000004f0| 6e 74 69 6c 20 6d 6f 72 | 65 20 74 68 61 6e 20 4d |ntil mor|e than M|
|00000500| 69 6e 4e 65 74 50 6c 61 | 79 65 72 73 20 70 6c 61 |inNetPla|yers pla|
|00000510| 79 65 72 73 20 68 61 76 | 65 20 6a 6f 69 6e 65 64 |yers hav|e joined|
|00000520| 20 62 65 66 6f 72 65 20 | 73 74 61 72 74 69 6e 67 | before |starting|
|00000530| 20 6d 61 74 63 68 0d 0a | 76 61 72 20 62 6f 6f 6c | match..|var bool|
|00000540| 09 62 46 69 72 73 74 42 | 6c 6f 6f 64 3b 0d 0a 76 |.bFirstB|lood;..v|
|00000550| 61 72 20 62 6f 6f 6c 09 | 62 51 75 69 63 6b 53 74 |ar bool.|bQuickSt|
|00000560| 61 72 74 3b 0d 0a 76 61 | 72 20 62 6f 6f 6c 09 62 |art;..va|r bool.b|
|00000570| 53 6b 69 70 50 6c 61 79 | 53 6f 75 6e 64 3b 09 09 |SkipPlay|Sound;..|
|00000580| 2f 2f 20 6f 76 65 72 72 | 69 64 65 20 22 70 6c 61 |// overr|ide "pla|
|00000590| 79 21 22 20 73 6f 75 6e | 64 0d 0a 76 61 72 20 62 |y!" soun|d..var b|
|000005a0| 6f 6f 6c 09 62 53 74 61 | 72 74 65 64 43 6f 75 6e |ool.bSta|rtedCoun|
|000005b0| 74 44 6f 77 6e 3b 0d 0a | 76 61 72 20 62 6f 6f 6c |tDown;..|var bool|
|000005c0| 09 62 46 69 6e 61 6c 53 | 74 61 72 74 75 70 3b 0d |.bFinalS|tartup;.|
|000005d0| 0a 76 61 72 20 62 6f 6f | 6c 09 62 4f 76 65 72 54 |.var boo|l.bOverT|
|000005e0| 69 6d 65 42 72 6f 61 64 | 63 61 73 74 3b 0d 0a 76 |imeBroad|cast;..v|
|000005f0| 61 72 20 62 6f 6f 6c 09 | 62 45 70 69 63 4e 61 6d |ar bool.|bEpicNam|
|00000600| 65 73 3b 0d 0a 76 61 72 | 20 62 6f 6f 6c 09 62 4b |es;..var| bool.bK|
|00000610| 69 6c 6c 42 6f 74 73 3b | 0d 0a 76 61 72 20 62 6f |illBots;|..var bo|
|00000620| 6f 6c 20 20 20 20 62 43 | 75 73 74 6f 6d 42 6f 74 |ol bC|ustomBot|
|00000630| 73 3b 0d 0a 76 61 72 20 | 62 6f 6f 6c 09 62 52 65 |s;..var |bool.bRe|
|00000640| 76 69 65 77 69 6e 67 4a | 75 6d 70 53 70 6f 74 73 |viewingJ|umpSpots|
|00000650| 3b 0d 0a 76 61 72 20 67 | 6c 6f 62 61 6c 63 6f 6e |;..var g|lobalcon|
|00000660| 66 69 67 20 62 6f 6f 6c | 20 62 41 6c 6c 6f 77 50 |fig bool| bAllowP|
|00000670| 6c 61 79 65 72 4c 69 67 | 68 74 73 3b 0d 0a 76 61 |layerLig|hts;..va|
|00000680| 72 20 62 6f 6f 6c 20 62 | 46 6f 72 63 65 4e 6f 50 |r bool b|ForceNoP|
|00000690| 6c 61 79 65 72 4c 69 67 | 68 74 73 3b 0d 0a 76 61 |layerLig|hts;..va|
|000006a0| 72 28 4d 65 6e 75 29 20 | 20 20 20 20 20 20 20 62 |r(Menu) | b|
|000006b0| 6f 6f 6c 20 20 20 62 41 | 6c 77 61 79 73 53 68 6f |ool bA|lwaysSho|
|000006c0| 77 4c 6f 67 69 6e 4d 65 | 6e 75 3b 09 20 2f 2f 41 |wLoginMe|nu;. //A|
|000006d0| 6c 77 61 79 73 20 73 68 | 6f 77 20 74 68 65 20 6c |lways sh|ow the l|
|000006e0| 6f 67 69 6e 20 6d 65 6e | 75 20 65 76 65 6e 20 74 |ogin men|u even t|
|000006f0| 6f 20 70 6c 61 79 65 72 | 73 20 77 68 6f 20 68 61 |o player|s who ha|
|00000700| 76 65 20 61 6c 72 65 61 | 64 79 20 76 69 73 69 74 |ve alrea|dy visit|
|00000710| 65 64 20 74 68 65 20 73 | 65 72 76 65 72 0d 0a 0d |ed the s|erver...|
|00000720| 0a 2f 2f 20 63 6c 69 65 | 6e 74 20 67 61 6d 65 20 |.// clie|nt game |
|00000730| 72 65 6e 64 65 72 69 6e | 67 20 6f 70 74 69 6f 6e |renderin|g option|
|00000740| 73 0d 0a 76 61 72 20 67 | 6c 6f 62 61 6c 63 6f 6e |s..var g|lobalcon|
|00000750| 66 69 67 20 62 6f 6f 6c | 20 62 46 6f 72 63 65 44 |fig bool| bForceD|
|00000760| 65 66 61 75 6c 74 43 68 | 61 72 61 63 74 65 72 3b |efaultCh|aracter;|
|00000770| 09 09 2f 2f 20 61 6c 6c | 20 63 68 61 72 61 63 74 |..// all| charact|
|00000780| 65 72 73 20 73 68 6f 77 | 6e 20 75 73 69 6e 67 20 |ers show|n using |
|00000790| 64 65 66 61 75 6c 74 20 | 6d 65 73 68 0d 0a 0d 0a |default |mesh....|
|000007a0| 76 61 72 20 62 6f 6f 6c | 20 62 50 6c 61 79 65 72 |var bool| bPlayer|
|000007b0| 42 65 63 61 6d 65 41 63 | 74 69 76 65 3b 0d 0a 76 |BecameAc|tive;..v|
|000007c0| 61 72 20 62 6f 6f 6c 20 | 62 4d 75 73 74 48 61 76 |ar bool |bMustHav|
|000007d0| 65 4d 75 6c 74 69 70 6c | 65 50 6c 61 79 65 72 73 |eMultipl|ePlayers|
|000007e0| 3b 0d 0a 0d 0a 76 61 72 | 20 62 79 74 65 20 53 74 |;....var| byte St|
|000007f0| 61 72 74 75 70 53 74 61 | 67 65 3b 20 20 20 20 20 |artupSta|ge; |
|00000800| 20 20 20 20 20 20 20 20 | 20 2f 2f 20 77 68 61 74 | | // what|
|00000810| 20 73 74 61 72 74 75 70 | 20 6d 65 73 73 61 67 65 | startup| message|
|00000820| 20 74 6f 20 64 69 73 70 | 6c 61 79 0d 0a 76 61 72 | to disp|lay..var|
|00000830| 20 69 6e 74 20 4e 75 6d | 52 6f 75 6e 64 73 3b 0d | int Num|Rounds;.|
|00000840| 0a 0d 0a 76 61 72 20 63 | 6f 6e 66 69 67 20 66 6c |...var c|onfig fl|
|00000850| 6f 61 74 09 09 53 70 61 | 77 6e 50 72 6f 74 65 63 |oat..Spa|wnProtec|
|00000860| 74 69 6f 6e 54 69 6d 65 | 3b 0d 0a 76 61 72 20 69 |tionTime|;..var i|
|00000870| 6e 74 09 09 09 44 65 66 | 61 75 6c 74 4d 61 78 4c |nt...Def|aultMaxL|
|00000880| 69 76 65 73 3b 0d 0a 76 | 61 72 20 63 6f 6e 66 69 |ives;..v|ar confi|
|00000890| 67 20 69 6e 74 09 09 09 | 4c 61 74 65 45 6e 74 72 |g int...|LateEntr|
|000008a0| 79 4c 69 76 65 73 3b 09 | 2f 2f 20 64 65 66 69 6e |yLives;.|// defin|
|000008b0| 65 73 20 68 6f 77 20 6d | 61 6e 79 20 6c 69 76 65 |es how m|any live|
|000008c0| 73 20 69 6e 20 61 20 70 | 6c 61 79 65 72 20 63 61 |s in a p|layer ca|
|000008d0| 6e 20 73 74 69 6c 6c 20 | 6a 6f 69 6e 0d 0a 0d 0a |n still |join....|
|000008e0| 76 61 72 20 69 6e 74 20 | 52 65 6d 61 69 6e 69 6e |var int |Remainin|
|000008f0| 67 54 69 6d 65 2c 20 45 | 6c 61 70 73 65 64 54 69 |gTime, E|lapsedTi|
|00000900| 6d 65 3b 0d 0a 76 61 72 | 20 69 6e 74 20 43 6f 75 |me;..var| int Cou|
|00000910| 6e 74 44 6f 77 6e 3b 0d | 0a 76 61 72 20 66 6c 6f |ntDown;.|.var flo|
|00000920| 61 74 20 41 64 6a 75 73 | 74 65 64 44 69 66 66 69 |at Adjus|tedDiffi|
|00000930| 63 75 6c 74 79 3b 0d 0a | 76 61 72 20 69 6e 74 20 |culty;..|var int |
|00000940| 50 6c 61 79 65 72 4b 69 | 6c 6c 73 2c 20 50 6c 61 |PlayerKi|lls, Pla|
|00000950| 79 65 72 44 65 61 74 68 | 73 3b 0d 0a 76 61 72 20 |yerDeath|s;..var |
|00000960| 63 6c 61 73 73 3c 53 71 | 75 61 64 41 49 3e 20 44 |class<Sq|uadAI> D|
|00000970| 4d 53 71 75 61 64 43 6c | 61 73 73 3b 20 20 20 20 |MSquadCl|ass; |
|00000980| 2f 2f 20 73 71 75 61 64 | 20 63 6c 61 73 73 20 74 |// squad| class t|
|00000990| 6f 20 75 73 65 20 66 6f | 72 20 62 6f 74 73 20 69 |o use fo|r bots i|
|000009a0| 6e 20 44 4d 20 67 61 6d | 65 73 20 28 6e 6f 20 74 |n DM gam|es (no t|
|000009b0| 65 61 6d 29 0d 0a 76 61 | 72 20 63 6c 61 73 73 3c |eam)..va|r class<|
|000009c0| 4c 65 76 65 6c 47 61 6d | 65 52 75 6c 65 73 3e 20 |LevelGam|eRules> |
|000009d0| 4c 65 76 65 6c 52 75 6c | 65 73 43 6c 61 73 73 3b |LevelRul|esClass;|
|000009e0| 0d 0a 76 61 72 20 4c 65 | 76 65 6c 47 61 6d 65 52 |..var Le|velGameR|
|000009f0| 75 6c 65 73 20 4c 65 76 | 65 6c 52 75 6c 65 73 3b |ules Lev|elRules;|
|00000a00| 09 09 2f 2f 20 6c 65 76 | 65 6c 20 64 65 73 69 67 |..// lev|el desig|
|00000a10| 6e 65 72 20 6f 76 65 72 | 72 69 64 69 6e 67 20 6f |ner over|riding o|
|00000a20| 66 20 67 61 6d 65 20 73 | 65 74 74 69 6e 67 73 20 |f game s|ettings |
|00000a30| 28 68 6f 6f 6b 20 66 6f | 72 20 6d 6f 64 20 61 75 |(hook fo|r mod au|
|00000a40| 74 68 6f 72 73 29 0d 0a | 76 61 72 20 55 6e 72 65 |thors)..|var Unre|
|00000a50| 61 6c 54 65 61 6d 49 6e | 66 6f 20 45 6e 65 6d 79 |alTeamIn|fo Enemy|
|00000a60| 52 6f 73 74 65 72 3b 0d | 0a 76 61 72 20 73 74 72 |Roster;.|.var str|
|00000a70| 69 6e 67 20 45 6e 65 6d | 79 52 6f 73 74 65 72 4e |ing Enem|yRosterN|
|00000a80| 61 6d 65 3b 0d 0a 76 61 | 72 20 73 74 72 69 6e 67 |ame;..va|r string|
|00000a90| 20 44 65 66 61 75 6c 74 | 45 6e 65 6d 79 52 6f 73 | Default|EnemyRos|
|00000aa0| 74 65 72 43 6c 61 73 73 | 3b 0d 0a 0d 0a 2f 2f 20 |terClass|;....// |
|00000ab0| 42 6f 74 20 72 65 6c 61 | 74 65 64 20 69 6e 66 6f |Bot rela|ted info|
|00000ac0| 0d 0a 76 61 72 20 20 20 | 20 20 69 6e 74 20 20 20 |..var | int |
|00000ad0| 20 20 20 20 20 20 52 65 | 6d 61 69 6e 69 6e 67 42 | Re|mainingB|
|00000ae0| 6f 74 73 3b 0d 0a 76 61 | 72 20 20 20 20 20 69 6e |ots;..va|r in|
|00000af0| 74 20 20 20 20 20 20 20 | 20 20 49 6e 69 74 69 61 |t | Initia|
|00000b00| 6c 42 6f 74 73 3b 0d 0a | 0d 0a 76 61 72 20 4e 61 |lBots;..|..var Na|
|00000b10| 76 69 67 61 74 69 6f 6e | 50 6f 69 6e 74 20 4c 61 |vigation|Point La|
|00000b20| 73 74 50 6c 61 79 65 72 | 53 74 61 72 74 53 70 6f |stPlayer|StartSpo|
|00000b30| 74 3b 20 20 20 20 2f 2f | 20 6c 61 73 74 20 70 6c |t; //| last pl|
|00000b40| 61 63 65 20 70 6c 61 79 | 65 72 20 6c 6f 6f 6b 69 |ace play|er looki|
|00000b50| 6e 67 20 66 6f 72 20 73 | 74 61 72 74 20 73 70 6f |ng for s|tart spo|
|00000b60| 74 20 73 74 61 72 74 65 | 64 20 66 72 6f 6d 0d 0a |t starte|d from..|
|00000b70| 76 61 72 20 4e 61 76 69 | 67 61 74 69 6f 6e 50 6f |var Navi|gationPo|
|00000b80| 69 6e 74 20 4c 61 73 74 | 53 74 61 72 74 53 70 6f |int Last|StartSpo|
|00000b90| 74 3b 20 20 20 20 20 20 | 20 20 20 20 2f 2f 20 6c |t; | // l|
|00000ba0| 61 73 74 20 70 6c 61 63 | 65 20 61 6e 79 20 70 6c |ast plac|e any pl|
|00000bb0| 61 79 65 72 20 73 74 61 | 72 74 65 64 20 66 72 6f |ayer sta|rted fro|
|00000bc0| 6d 0d 0a 0d 0a 76 61 72 | 20 20 20 20 20 69 6e 74 |m....var| int|
|00000bd0| 20 20 20 20 20 20 20 20 | 20 4e 61 6d 65 4e 75 6d | | NameNum|
|00000be0| 62 65 72 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 |ber; | |
|00000bf0| 20 2f 2f 20 61 70 70 65 | 6e 64 20 74 6f 20 65 6e | // appe|nd to en|
|00000c00| 73 75 72 65 20 75 6e 69 | 71 75 65 20 6e 61 6d 65 |sure uni|que name|
|00000c10| 20 69 66 20 64 75 70 6c | 69 63 61 74 65 20 70 6c | if dupl|icate pl|
|00000c20| 61 79 65 72 20 6e 61 6d | 65 20 63 68 61 6e 67 65 |ayer nam|e change|
|00000c30| 20 72 65 71 75 65 73 74 | 65 64 0d 0a 0d 0a 76 61 | request|ed....va|
|00000c40| 72 20 69 6e 74 20 20 20 | 20 20 20 20 20 20 20 20 |r int | |
|00000c50| 20 20 45 6e 64 4d 65 73 | 73 61 67 65 57 61 69 74 | EndMes|sageWait|
|00000c60| 3b 20 20 20 20 20 20 20 | 20 20 2f 2f 20 77 61 69 |; | // wai|
|00000c70| 74 20 62 65 66 6f 72 65 | 20 70 6c 61 79 69 6e 67 |t before| playing|
|00000c80| 20 77 68 69 63 68 20 74 | 65 61 6d 20 77 6f 6e 20 | which t|eam won |
|00000c90| 74 68 65 20 6d 61 74 63 | 68 0d 0a 76 61 72 20 74 |the matc|h..var t|
|00000ca0| 72 61 6e 73 69 65 6e 74 | 20 69 6e 74 20 20 20 45 |ransient| int E|
|00000cb0| 6e 64 4d 65 73 73 61 67 | 65 43 6f 75 6e 74 65 72 |ndMessag|eCounter|
|00000cc0| 3b 20 20 20 20 20 20 2f | 2f 20 65 6e 64 20 6d 65 |; /|/ end me|
|00000cd0| 73 73 61 67 65 20 63 6f | 75 6e 74 65 72 0d 0a 76 |ssage co|unter..v|
|00000ce0| 61 72 20 6e 61 6d 65 09 | 09 09 45 6e 64 47 61 6d |ar name.|..EndGam|
|00000cf0| 65 53 6f 75 6e 64 4e 61 | 6d 65 5b 32 5d 3b 0d 0a |eSoundNa|me[2];..|
|00000d00| 76 61 72 20 6e 61 6d 65 | 09 09 09 41 6c 74 45 6e |var name|...AltEn|
|00000d10| 64 47 61 6d 65 53 6f 75 | 6e 64 4e 61 6d 65 5b 32 |dGameSou|ndName[2|
|00000d20| 5d 3b 0d 0a 76 61 72 20 | 69 6e 74 20 20 20 20 20 |];..var |int |
|00000d30| 20 20 20 20 20 20 20 20 | 53 69 6e 67 6c 65 50 6c | |SinglePl|
|00000d40| 61 79 65 72 57 61 69 74 | 3b 20 20 20 20 20 20 20 |ayerWait|; |
|00000d50| 2f 2f 20 73 69 6e 67 6c | 65 2d 70 6c 61 79 65 72 |// singl|e-player|
|00000d60| 20 77 61 69 74 20 64 65 | 6c 61 79 20 62 65 66 6f | wait de|lay befo|
|00000d70| 72 65 20 61 75 74 6f 2d | 72 65 74 75 72 6e 69 6e |re auto-|returnin|
|00000d80| 67 20 74 6f 20 6d 65 6e | 75 73 0d 0a 0d 0a 76 61 |g to men|us....va|
|00000d90| 72 20 67 6c 6f 62 61 6c | 63 6f 6e 66 69 67 20 73 |r global|config s|
|00000da0| 74 72 69 6e 67 20 4e 61 | 6d 65 50 72 65 66 69 78 |tring Na|mePrefix|
|00000db0| 65 73 5b 31 30 5d 3b 09 | 09 2f 2f 20 66 6f 72 20 |es[10];.|.// for |
|00000dc0| 62 6f 74 73 20 77 69 74 | 68 20 73 61 6d 65 20 6e |bots wit|h same n|
|00000dd0| 61 6d 65 0d 0a 76 61 72 | 20 67 6c 6f 62 61 6c 63 |ame..var| globalc|
|00000de0| 6f 6e 66 69 67 20 73 74 | 72 69 6e 67 20 4e 61 6d |onfig st|ring Nam|
|00000df0| 65 53 75 66 66 69 78 65 | 73 5b 31 30 5d 3b 09 09 |eSuffixe|s[10];..|
|00000e00| 2f 2f 20 66 6f 72 20 62 | 6f 74 73 20 77 69 74 68 |// for b|ots with|
|00000e10| 20 73 61 6d 65 20 6e 61 | 6d 65 0d 0a 0d 0a 76 61 | same na|me....va|
|00000e20| 72 20 61 63 74 6f 72 20 | 45 6e 64 47 61 6d 65 46 |r actor |EndGameF|
|00000e30| 6f 63 75 73 3b 0d 0a 76 | 61 72 20 50 6c 61 79 65 |ocus;..v|ar Playe|
|00000e40| 72 43 6f 6e 74 72 6f 6c | 6c 65 72 20 53 74 61 6e |rControl|ler Stan|
|00000e50| 64 61 6c 6f 6e 65 50 6c | 61 79 65 72 3b 0d 0a 0d |dalonePl|ayer;...|
|00000e60| 0a 2f 2f 20 6d 63 20 2d | 20 6c 6f 63 61 6c 69 7a |.// mc -| localiz|
|00000e70| 65 64 20 50 6c 61 79 49 | 6e 66 6f 20 64 65 73 63 |ed PlayI|nfo desc|
|00000e80| 72 69 70 74 69 6f 6e 73 | 20 26 20 65 78 74 72 61 |riptions| & extra|
|00000e90| 20 69 6e 66 6f 0d 0a 63 | 6f 6e 73 74 20 44 4d 50 | info..c|onst DMP|
|00000ea0| 52 4f 50 4e 55 4d 20 3d | 20 31 34 3b 0d 0a 76 61 |ROPNUM =| 14;..va|
|00000eb0| 72 20 6c 6f 63 61 6c 69 | 7a 65 64 20 73 74 72 69 |r locali|zed stri|
|00000ec0| 6e 67 20 44 4d 50 72 6f | 70 73 44 69 73 70 6c 61 |ng DMPro|psDispla|
|00000ed0| 79 54 65 78 74 5b 44 4d | 50 52 4f 50 4e 55 4d 5d |yText[DM|PROPNUM]|
|00000ee0| 3b 0d 0a 76 61 72 20 6c | 6f 63 61 6c 69 7a 65 64 |;..var l|ocalized|
|00000ef0| 20 73 74 72 69 6e 67 20 | 44 4d 50 72 6f 70 44 65 | string |DMPropDe|
|00000f00| 73 63 54 65 78 74 5b 44 | 4d 50 52 4f 50 4e 55 4d |scText[D|MPROPNUM|
|00000f10| 5d 3b 0d 0a 0d 0a 76 61 | 72 09 6c 6f 63 61 6c 69 |];....va|r.locali|
|00000f20| 7a 65 64 20 73 74 72 69 | 6e 67 09 59 6f 75 44 65 |zed stri|ng.YouDe|
|00000f30| 73 74 72 6f 79 65 64 2c | 20 59 6f 75 44 65 73 74 |stroyed,| YouDest|
|00000f40| 72 6f 79 65 64 54 72 61 | 69 6c 65 72 3b 09 2f 2f |royedTra|iler;.//|
|00000f50| 20 76 65 68 69 63 6c 65 | 20 64 65 73 74 72 6f 79 | vehicle| destroy|
|00000f60| 20 6b 69 6c 6c 20 6d 65 | 73 73 61 67 65 0d 0a 0d | kill me|ssage...|
|00000f70| 0a 76 61 72 28 29 20 66 | 6c 6f 61 74 20 41 44 52 |.var() f|loat ADR|
|00000f80| 5f 4b 69 6c 6c 3b 0d 0a | 76 61 72 28 29 20 66 6c |_Kill;..|var() fl|
|00000f90| 6f 61 74 20 41 44 52 5f | 4d 61 6a 6f 72 4b 69 6c |oat ADR_|MajorKil|
|00000fa0| 6c 3b 0d 0a 76 61 72 28 | 29 20 66 6c 6f 61 74 20 |l;..var(|) float |
|00000fb0| 41 44 52 5f 4d 69 6e 6f | 72 45 72 72 6f 72 3b 0d |ADR_Mino|rError;.|
|00000fc0| 0a 76 61 72 28 29 20 66 | 6c 6f 61 74 20 41 44 52 |.var() f|loat ADR|
|00000fd0| 5f 4d 69 6e 6f 72 42 6f | 6e 75 73 3b 0d 0a 76 61 |_MinorBo|nus;..va|
|00000fe0| 72 28 29 20 66 6c 6f 61 | 74 20 41 44 52 5f 4b 69 |r() floa|t ADR_Ki|
|00000ff0| 6c 6c 54 65 61 6d 4d 61 | 74 65 3b 0d 0a 0d 0a 76 |llTeamMa|te;....v|
|00001000| 61 72 20 73 74 72 69 6e | 67 20 45 70 69 63 4e 61 |ar strin|g EpicNa|
|00001010| 6d 65 73 5b 32 31 5d 3b | 0d 0a 76 61 72 20 73 74 |mes[21];|..var st|
|00001020| 72 69 6e 67 20 4d 61 6c | 65 42 61 63 6b 75 70 4e |ring Mal|eBackupN|
|00001030| 61 6d 65 73 5b 33 32 5d | 3b 0d 0a 76 61 72 20 73 |ames[32]|;..var s|
|00001040| 74 72 69 6e 67 20 46 65 | 6d 61 6c 65 42 61 63 6b |tring Fe|maleBack|
|00001050| 75 70 4e 61 6d 65 73 5b | 33 32 5d 3b 0d 0a 76 61 |upNames[|32];..va|
|00001060| 72 20 69 6e 74 20 45 70 | 69 63 4f 66 66 73 65 74 |r int Ep|icOffset|
|00001070| 2c 20 54 6f 74 61 6c 45 | 70 69 63 2c 20 4d 61 6c |, TotalE|pic, Mal|
|00001080| 65 42 61 63 6b 75 70 4e | 61 6d 65 4f 66 66 73 65 |eBackupN|ameOffse|
|00001090| 74 2c 20 46 65 6d 61 6c | 65 42 61 63 6b 75 70 4e |t, Femal|eBackupN|
|000010a0| 61 6d 65 4f 66 66 73 65 | 74 3b 0d 0a 0d 0a 76 61 |ameOffse|t;....va|
|000010b0| 72 28 4d 65 6e 75 29 20 | 63 6f 6e 66 69 67 20 73 |r(Menu) |config s|
|000010c0| 74 72 69 6e 67 20 4c 6f | 67 69 6e 4d 65 6e 75 43 |tring Lo|ginMenuC|
|000010d0| 6c 61 73 73 3b 09 20 20 | 20 20 20 20 20 20 20 2f |lass;. | /|
|000010e0| 2f 53 68 6f 77 20 74 68 | 69 73 20 6d 65 6e 75 20 |/Show th|is menu |
|000010f0| 74 6f 20 70 6c 61 79 65 | 72 73 20 6a 6f 69 6e 69 |to playe|rs joini|
|00001100| 6e 67 20 74 68 65 20 73 | 65 72 76 65 72 0d 0a 0d |ng the s|erver...|
|00001110| 0a 76 61 72 28 4c 6f 61 | 64 69 6e 67 48 69 6e 74 |.var(Loa|dingHint|
|00001120| 73 29 20 70 72 69 76 61 | 74 65 20 6c 6f 63 61 6c |s) priva|te local|
|00001130| 69 7a 65 64 20 61 72 72 | 61 79 3c 73 74 72 69 6e |ized arr|ay<strin|
|00001140| 67 3e 20 44 4d 48 69 6e | 74 73 3b 0d 0a 0d 0a 66 |g> DMHin|ts;....f|
|00001150| 75 6e 63 74 69 6f 6e 20 | 50 6f 73 74 42 65 67 69 |unction |PostBegi|
|00001160| 6e 50 6c 61 79 28 29 0d | 0a 7b 0d 0a 09 4e 61 6d |nPlay().|.{...Nam|
|00001170| 65 4e 75 6d 62 65 72 20 | 3d 20 52 61 6e 64 28 31 |eNumber |= Rand(1|
|00001180| 30 29 3b 0d 0a 09 45 70 | 69 63 4f 66 66 73 65 74 |0);...Ep|icOffset|
|00001190| 20 3d 20 52 61 6e 64 28 | 31 30 29 3b 0d 0a 09 4d | = Rand(|10);...M|
|000011a0| 61 6c 65 42 61 63 6b 75 | 70 4e 61 6d 65 4f 66 66 |aleBacku|pNameOff|
|000011b0| 73 65 74 20 3d 20 52 61 | 6e 64 28 33 32 29 3b 0d |set = Ra|nd(32);.|
|000011c0| 0a 09 46 65 6d 61 6c 65 | 42 61 63 6b 75 70 4e 61 |..Female|BackupNa|
|000011d0| 6d 65 4f 66 66 73 65 74 | 20 3d 20 52 61 6e 64 28 |meOffset| = Rand(|
|000011e0| 33 32 29 3b 0d 0a 0d 0a | 20 20 20 20 53 75 70 65 |32);....| Supe|
|000011f0| 72 2e 50 6f 73 74 42 65 | 67 69 6e 50 6c 61 79 28 |r.PostBe|ginPlay(|
|00001200| 29 3b 0d 0a 20 20 20 20 | 47 61 6d 65 52 65 70 6c |);.. |GameRepl|
|00001210| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 52 65 6d 61 |icationI|nfo.Rema|
|00001220| 69 6e 69 6e 67 54 69 6d | 65 20 3d 20 52 65 6d 61 |iningTim|e = Rema|
|00001230| 69 6e 69 6e 67 54 69 6d | 65 3b 0d 0a 20 20 20 20 |iningTim|e;.. |
|00001240| 47 61 6d 65 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |GameRepl|icationI|
|00001250| 6e 66 6f 2e 62 46 6f 72 | 63 65 54 65 61 6d 53 6b |nfo.bFor|ceTeamSk|
|00001260| 69 6e 73 20 3d 20 21 62 | 54 65 61 6d 47 61 6d 65 |ins = !b|TeamGame|
|00001270| 20 26 26 20 62 43 6f 6c | 6f 72 65 64 44 4d 53 6b | && bCol|oredDMSk|
|00001280| 69 6e 73 3b 0d 0a 09 47 | 61 6d 65 52 65 70 6c 69 |ins;...G|ameRepli|
|00001290| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 62 46 6f 72 63 |cationIn|fo.bForc|
|000012a0| 65 4e 6f 50 6c 61 79 65 | 72 4c 69 67 68 74 73 20 |eNoPlaye|rLights |
|000012b0| 3d 20 62 46 6f 72 63 65 | 4e 6f 50 6c 61 79 65 72 |= bForce|NoPlayer|
|000012c0| 4c 69 67 68 74 73 3b 0d | 0a 09 69 66 20 28 20 62 |Lights;.|..if ( b|
|000012d0| 50 6c 61 79 65 72 73 56 | 73 42 6f 74 73 20 7c 7c |PlayersV|sBots |||
|000012e0| 20 28 43 75 72 72 65 6e | 74 47 61 6d 65 50 72 6f | (Curren|tGamePro|
|000012f0| 66 69 6c 65 20 21 3d 20 | 4e 6f 6e 65 29 20 29 0d |file != |None) ).|
|00001300| 0a 09 09 47 61 6d 65 52 | 65 70 6c 69 63 61 74 69 |...GameR|eplicati|
|00001310| 6f 6e 49 6e 66 6f 2e 62 | 4e 6f 54 65 61 6d 43 68 |onInfo.b|NoTeamCh|
|00001320| 61 6e 67 65 73 20 3d 20 | 74 72 75 65 3b 0d 0a 09 |anges = |true;...|
|00001330| 69 66 20 28 20 21 62 46 | 6f 72 63 65 4e 6f 50 6c |if ( !bF|orceNoPl|
|00001340| 61 79 65 72 4c 69 67 68 | 74 73 20 26 26 20 28 62 |ayerLigh|ts && (b|
|00001350| 54 65 61 6d 47 61 6d 65 | 20 7c 7c 20 62 43 6f 6c |TeamGame| || bCol|
|00001360| 6f 72 65 64 44 4d 53 6b | 69 6e 73 29 20 29 0d 0a |oredDMSk|ins) )..|
|00001370| 09 09 47 61 6d 65 52 65 | 70 6c 69 63 61 74 69 6f |..GameRe|plicatio|
|00001380| 6e 49 6e 66 6f 2e 62 41 | 6c 6c 6f 77 50 6c 61 79 |nInfo.bA|llowPlay|
|00001390| 65 72 4c 69 67 68 74 73 | 20 3d 20 44 65 66 61 75 |erLights| = Defau|
|000013a0| 6c 74 2e 62 41 6c 6c 6f | 77 50 6c 61 79 65 72 4c |lt.bAllo|wPlayerL|
|000013b0| 69 67 68 74 73 3b 0d 0a | 20 20 20 20 49 6e 69 74 |ights;..| Init|
|000013c0| 54 65 61 6d 53 79 6d 62 | 6f 6c 73 28 29 3b 0d 0a |TeamSymb|ols();..|
|000013d0| 20 20 20 20 47 65 74 42 | 6f 74 54 65 61 6d 28 49 | GetB|otTeam(I|
|000013e0| 6e 69 74 69 61 6c 42 6f | 74 73 29 3b 0d 0a 20 20 |nitialBo|ts);.. |
|000013f0| 20 20 69 66 20 28 20 28 | 43 75 72 72 65 6e 74 47 | if ( (|CurrentG|
|00001400| 61 6d 65 50 72 6f 66 69 | 6c 65 20 3d 3d 20 4e 6f |ameProfi|le == No|
|00001410| 6e 65 29 20 7c 7c 20 28 | 62 43 75 73 74 6f 6d 42 |ne) || (|bCustomB|
|00001420| 6f 74 73 20 26 26 20 28 | 47 65 74 42 6f 74 54 65 |ots && (|GetBotTe|
|00001430| 61 6d 28 29 20 21 3d 20 | 4e 6f 6e 65 29 29 20 29 |am() != |None)) )|
|00001440| 0d 0a 09 09 4f 76 65 72 | 72 69 64 65 49 6e 69 74 |....Over|rideInit|
|00001450| 69 61 6c 42 6f 74 73 28 | 29 3b 0d 0a 09 69 66 20 |ialBots(|);...if |
|00001460| 28 20 62 50 6c 61 79 65 | 72 73 56 73 42 6f 74 73 |( bPlaye|rsVsBots|
|00001470| 20 29 0d 0a 09 09 47 61 | 6d 65 52 65 70 6c 69 63 | )....Ga|meReplic|
|00001480| 61 74 69 6f 6e 49 6e 66 | 6f 2e 42 6f 74 44 69 66 |ationInf|o.BotDif|
|00001490| 66 69 63 75 6c 74 79 20 | 3d 20 47 61 6d 65 44 69 |ficulty |= GameDi|
|000014a0| 66 66 69 63 75 6c 74 79 | 3b 0d 0a 7d 0d 0a 0d 0a |fficulty|;..}....|
|000014b0| 66 75 6e 63 74 69 6f 6e | 20 4f 76 65 72 72 69 64 |function| Overrid|
|000014c0| 65 49 6e 69 74 69 61 6c | 42 6f 74 73 28 29 0d 0a |eInitial|Bots()..|
|000014d0| 7b 0d 0a 09 49 6e 69 74 | 69 61 6c 42 6f 74 73 20 |{...Init|ialBots |
|000014e0| 3d 20 47 65 74 42 6f 74 | 54 65 61 6d 28 29 2e 4f |= GetBot|Team().O|
|000014f0| 76 65 72 72 69 64 65 49 | 6e 69 74 69 61 6c 42 6f |verrideI|nitialBo|
|00001500| 74 73 28 49 6e 69 74 69 | 61 6c 42 6f 74 73 2c 4e |ts(Initi|alBots,N|
|00001510| 6f 6e 65 29 3b 0d 0a 7d | 0d 0a 0d 0a 2f 2a 20 52 |one);..}|..../* R|
|00001520| 65 73 65 74 28 29 0d 0a | 72 65 73 65 74 20 61 63 |eset()..|reset ac|
|00001530| 74 6f 72 20 74 6f 20 69 | 6e 69 74 69 61 6c 20 73 |tor to i|nitial s|
|00001540| 74 61 74 65 20 2d 20 75 | 73 65 64 20 77 68 65 6e |tate - u|sed when|
|00001550| 20 72 65 73 74 61 72 74 | 69 6e 67 20 6c 65 76 65 | restart|ing leve|
|00001560| 6c 20 77 69 74 68 6f 75 | 74 20 72 65 6c 6f 61 64 |l withou|t reload|
|00001570| 69 6e 67 2e 0d 0a 2a 2f | 0d 0a 66 75 6e 63 74 69 |ing...*/|..functi|
|00001580| 6f 6e 20 52 65 73 65 74 | 28 29 0d 0a 7b 0d 0a 20 |on Reset|()..{.. |
|00001590| 20 20 20 53 75 70 65 72 | 2e 52 65 73 65 74 28 29 | Super|.Reset()|
|000015a0| 3b 0d 0a 20 20 20 20 45 | 6c 61 70 73 65 64 54 69 |;.. E|lapsedTi|
|000015b0| 6d 65 20 3d 20 4e 65 74 | 57 61 69 74 20 2d 20 33 |me = Net|Wait - 3|
|000015c0| 3b 0d 0a 20 20 20 20 62 | 57 61 69 74 46 6f 72 4e |;.. b|WaitForN|
|000015d0| 65 74 50 6c 61 79 65 72 | 73 20 3d 20 28 20 4c 65 |etPlayer|s = ( Le|
|000015e0| 76 65 6c 2e 4e 65 74 4d | 6f 64 65 20 21 3d 20 4e |vel.NetM|ode != N|
|000015f0| 4d 5f 53 74 61 6e 64 41 | 6c 6f 6e 65 20 29 3b 0d |M_StandA|lone );.|
|00001600| 0a 09 62 53 74 61 72 74 | 65 64 43 6f 75 6e 74 44 |..bStart|edCountD|
|00001610| 6f 77 6e 20 3d 20 66 61 | 6c 73 65 3b 0d 0a 09 62 |own = fa|lse;...b|
|00001620| 46 69 6e 61 6c 53 74 61 | 72 74 75 70 20 3d 20 66 |FinalSta|rtup = f|
|00001630| 61 6c 73 65 3b 0d 0a 20 | 20 20 20 43 6f 75 6e 74 |alse;.. | Count|
|00001640| 44 6f 77 6e 20 3d 20 44 | 65 66 61 75 6c 74 2e 43 |Down = D|efault.C|
|00001650| 6f 75 6e 74 64 6f 77 6e | 3b 0d 0a 20 20 20 20 52 |ountdown|;.. R|
|00001660| 65 6d 61 69 6e 69 6e 67 | 54 69 6d 65 20 3d 20 36 |emaining|Time = 6|
|00001670| 30 20 2a 20 54 69 6d 65 | 4c 69 6d 69 74 3b 0d 0a |0 * Time|Limit;..|
|00001680| 20 20 20 20 47 6f 74 6f | 53 74 61 74 65 28 27 50 | Goto|State('P|
|00001690| 65 6e 64 69 6e 67 4d 61 | 74 63 68 27 29 3b 0d 0a |endingMa|tch');..|
|000016a0| 7d 0d 0a 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |}......f|unction |
|000016b0| 62 6f 6f 6c 20 4a 75 73 | 74 53 74 61 72 74 65 64 |bool Jus|tStarted|
|000016c0| 28 66 6c 6f 61 74 20 54 | 29 0d 0a 7b 0d 0a 09 69 |(float T|)..{...i|
|000016d0| 66 20 28 20 54 69 6d 65 | 4c 69 6d 69 74 20 3e 20 |f ( Time|Limit > |
|000016e0| 30 20 29 0d 0a 09 09 72 | 65 74 75 72 6e 20 28 52 |0 )....r|eturn (R|
|000016f0| 65 6d 61 69 6e 69 6e 67 | 54 69 6d 65 20 3e 20 36 |emaining|Time > 6|
|00001700| 30 20 2a 20 54 69 6d 65 | 4c 69 6d 69 74 20 2d 20 |0 * Time|Limit - |
|00001710| 32 30 29 3b 0d 0a 09 72 | 65 74 75 72 6e 20 28 20 |20);...r|eturn ( |
|00001720| 4c 65 76 65 6c 2e 54 69 | 6d 65 53 65 63 6f 6e 64 |Level.Ti|meSecond|
|00001730| 73 20 3c 20 54 20 29 3b | 0d 0a 7d 0d 0a 0d 0a 2f |s < T );|..}..../|
|00001740| 2a 20 43 68 65 63 6b 52 | 65 61 64 79 28 29 0d 0a |* CheckR|eady()..|
|00001750| 49 66 20 74 6f 75 72 6e | 61 6d 65 6e 74 20 67 61 |If tourn|ament ga|
|00001760| 6d 65 2c 20 6d 61 6b 65 | 20 73 75 72 65 20 74 68 |me, make| sure th|
|00001770| 61 74 20 74 68 65 72 65 | 20 69 73 20 61 20 76 61 |at there| is a va|
|00001780| 6c 69 64 20 67 61 6d 65 | 20 77 69 6e 6e 69 6e 67 |lid game| winning|
|00001790| 20 63 72 69 74 65 72 69 | 6f 6e 0d 0a 2a 2f 0d 0a | criteri|on..*/..|
|000017a0| 66 75 6e 63 74 69 6f 6e | 20 43 68 65 63 6b 52 65 |function| CheckRe|
|000017b0| 61 64 79 28 29 0d 0a 7b | 0d 0a 20 20 20 20 69 66 |ady()..{|.. if|
|000017c0| 20 28 20 28 47 6f 61 6c | 53 63 6f 72 65 20 3d 3d | ( (Goal|Score ==|
|000017d0| 20 30 29 20 26 26 20 28 | 54 69 6d 65 4c 69 6d 69 | 0) && (|TimeLimi|
|000017e0| 74 20 3d 3d 20 30 29 20 | 29 0d 0a 20 20 20 20 7b |t == 0) |).. {|
|000017f0| 0d 0a 20 20 20 20 20 20 | 20 20 54 69 6d 65 4c 69 |.. | TimeLi|
|00001800| 6d 69 74 20 3d 20 32 30 | 3b 0d 0a 20 20 20 20 20 |mit = 20|;.. |
|00001810| 20 20 20 52 65 6d 61 69 | 6e 69 6e 67 54 69 6d 65 | Remai|ningTime|
|00001820| 20 3d 20 36 30 20 2a 20 | 54 69 6d 65 4c 69 6d 69 | = 60 * |TimeLimi|
|00001830| 74 3b 0d 0a 20 20 20 20 | 7d 0d 0a 7d 0d 0a 0d 0a |t;.. |}..}....|
|00001840| 2f 2f 20 4d 6f 6e 69 74 | 6f 72 20 6b 69 6c 6c 65 |// Monit|or kille|
|00001850| 64 20 6d 65 73 73 61 67 | 65 73 20 66 6f 72 20 66 |d messag|es for f|
|00001860| 72 61 67 6c 69 6d 69 74 | 0d 0a 66 75 6e 63 74 69 |raglimit|..functi|
|00001870| 6f 6e 20 4b 69 6c 6c 65 | 64 28 20 43 6f 6e 74 72 |on Kille|d( Contr|
|00001880| 6f 6c 6c 65 72 20 4b 69 | 6c 6c 65 72 2c 20 43 6f |oller Ki|ller, Co|
|00001890| 6e 74 72 6f 6c 6c 65 72 | 20 4b 69 6c 6c 65 64 2c |ntroller| Killed,|
|000018a0| 20 50 61 77 6e 20 4b 69 | 6c 6c 65 64 50 61 77 6e | Pawn Ki|lledPawn|
|000018b0| 2c 20 63 6c 61 73 73 3c | 44 61 6d 61 67 65 54 79 |, class<|DamageTy|
|000018c0| 70 65 3e 20 64 61 6d 61 | 67 65 54 79 70 65 20 29 |pe> dama|geType )|
|000018d0| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 62 6f 6f 6c |..{...lo|cal bool|
|000018e0| 09 09 62 45 6e 65 6d 79 | 4b 69 6c 6c 3b 0d 0a 09 |..bEnemy|Kill;...|
|000018f0| 6c 6f 63 61 6c 20 69 6e | 74 09 09 53 63 6f 72 65 |local in|t..Score|
|00001900| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 73 74 72 69 6e 67 |;...loca|l string|
|00001910| 09 4b 69 6c 6c 49 6e 66 | 6f 3b 0d 0a 0d 0a 09 62 |.KillInf|o;.....b|
|00001920| 45 6e 65 6d 79 4b 69 6c | 6c 20 3d 20 28 20 21 62 |EnemyKil|l = ( !b|
|00001930| 54 65 61 6d 47 61 6d 65 | 20 7c 7c 20 28 28 4b 69 |TeamGame| || ((Ki|
|00001940| 6c 6c 65 72 20 21 3d 20 | 4e 6f 6e 65 29 20 26 26 |ller != |None) &&|
|00001950| 20 28 4b 69 6c 6c 65 72 | 20 21 3d 20 4b 69 6c 6c | (Killer| != Kill|
|00001960| 65 64 29 20 26 26 20 28 | 4b 69 6c 6c 65 64 20 21 |ed) && (|Killed !|
|00001970| 3d 20 4e 6f 6e 65 29 0d | 0a 09 09 09 09 09 09 09 |= None).|........|
|00001980| 09 26 26 20 28 4b 69 6c | 6c 65 72 2e 50 6c 61 79 |.&& (Kil|ler.Play|
|00001990| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|000019a0| 6f 20 21 3d 20 4e 6f 6e | 65 29 20 26 26 20 28 4b |o != Non|e) && (K|
|000019b0| 69 6c 6c 65 64 2e 50 6c | 61 79 65 72 52 65 70 6c |illed.Pl|ayerRepl|
|000019c0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 20 21 3d 20 4e |icationI|nfo != N|
|000019d0| 6f 6e 65 29 0d 0a 09 09 | 09 09 09 09 09 09 26 26 |one)....|......&&|
|000019e0| 20 28 4b 69 6c 6c 65 72 | 2e 50 6c 61 79 65 72 52 | (Killer|.PlayerR|
|000019f0| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|00001a00| 65 61 6d 20 21 3d 20 4b | 69 6c 6c 65 64 2e 50 6c |eam != K|illed.Pl|
|00001a10| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00001a20| 6e 66 6f 2e 54 65 61 6d | 29 29 20 29 3b 0d 0a 0d |nfo.Team|)) );...|
|00001a30| 0a 09 69 66 20 28 20 4b | 69 6c 6c 65 64 50 61 77 |..if ( K|illedPaw|
|00001a40| 6e 20 21 3d 20 4e 6f 6e | 65 20 26 26 20 4b 69 6c |n != Non|e && Kil|
|00001a50| 6c 65 64 50 61 77 6e 2e | 47 65 74 53 70 72 65 65 |ledPawn.|GetSpree|
|00001a60| 28 29 20 3e 20 34 20 29 | 0d 0a 09 7b 0d 0a 09 09 |() > 4 )|...{....|
|00001a70| 69 66 20 28 20 62 45 6e | 65 6d 79 4b 69 6c 6c 20 |if ( bEn|emyKill |
|00001a80| 26 26 20 28 4b 69 6c 6c | 65 72 20 21 3d 20 4e 6f |&& (Kill|er != No|
|00001a90| 6e 65 29 20 29 0d 0a 09 | 09 09 4b 69 6c 6c 65 72 |ne) )...|..Killer|
|00001aa0| 2e 41 77 61 72 64 41 64 | 72 65 6e 61 6c 69 6e 65 |.AwardAd|renaline|
|00001ab0| 28 41 44 52 5f 4d 61 6a | 6f 72 4b 69 6c 6c 29 3b |(ADR_Maj|orKill);|
|00001ac0| 0d 0a 09 09 45 6e 64 53 | 70 72 65 65 28 4b 69 6c |....EndS|pree(Kil|
|00001ad0| 6c 65 72 2c 20 4b 69 6c | 6c 65 64 29 3b 0d 0a 09 |ler, Kil|led);...|
|00001ae0| 7d 0d 0a 09 69 66 20 28 | 20 28 4b 69 6c 6c 65 72 |}...if (| (Killer|
|00001af0| 20 21 3d 20 4e 6f 6e 65 | 29 20 26 26 20 4b 69 6c | != None|) && Kil|
|00001b00| 6c 65 72 2e 62 49 73 50 | 6c 61 79 65 72 20 26 26 |ler.bIsP|layer &&|
|00001b10| 20 28 4b 69 6c 6c 65 64 | 20 21 3d 20 4e 6f 6e 65 | (Killed| != None|
|00001b20| 29 20 26 26 20 4b 69 6c | 6c 65 64 2e 62 49 73 50 |) && Kil|led.bIsP|
|00001b30| 6c 61 79 65 72 20 29 0d | 0a 09 7b 0d 0a 09 09 69 |layer ).|..{....i|
|00001b40| 66 20 28 20 55 6e 72 65 | 61 6c 50 6c 61 79 65 72 |f ( Unre|alPlayer|
|00001b50| 28 4b 69 6c 6c 65 72 29 | 20 21 3d 20 4e 6f 6e 65 |(Killer)| != None|
|00001b60| 20 29 0d 0a 09 09 09 55 | 6e 72 65 61 6c 50 6c 61 | ).....U|nrealPla|
|00001b70| 79 65 72 28 4b 69 6c 6c | 65 72 29 2e 4c 6f 67 4d |yer(Kill|er).LogM|
|00001b80| 75 6c 74 69 4b 69 6c 6c | 73 28 41 44 52 5f 4d 61 |ultiKill|s(ADR_Ma|
|00001b90| 6a 6f 72 4b 69 6c 6c 2c | 20 62 45 6e 65 6d 79 4b |jorKill,| bEnemyK|
|00001ba0| 69 6c 6c 29 3b 0d 0a 0d | 0a 09 09 69 66 20 28 20 |ill);...|...if ( |
|00001bb0| 62 45 6e 65 6d 79 4b 69 | 6c 6c 20 29 0d 0a 09 09 |bEnemyKi|ll )....|
|00001bc0| 09 44 61 6d 61 67 65 54 | 79 70 65 2e 73 74 61 74 |.DamageT|ype.stat|
|00001bd0| 69 63 2e 53 63 6f 72 65 | 4b 69 6c 6c 28 4b 69 6c |ic.Score|Kill(Kil|
|00001be0| 6c 65 72 2c 20 4b 69 6c | 6c 65 64 29 3b 0d 0a 0d |ler, Kil|led);...|
|00001bf0| 0a 09 09 69 66 20 28 20 | 21 62 46 69 72 73 74 42 |...if ( |!bFirstB|
|00001c00| 6c 6f 6f 64 20 26 26 20 | 28 4b 69 6c 6c 65 72 20 |lood && |(Killer |
|00001c10| 21 3d 20 4b 69 6c 6c 65 | 64 29 20 26 26 20 62 45 |!= Kille|d) && bE|
|00001c20| 6e 65 6d 79 4b 69 6c 6c | 20 29 0d 0a 09 09 7b 0d |nemyKill| )....{.|
|00001c30| 0a 09 09 09 4b 69 6c 6c | 65 72 2e 41 77 61 72 64 |....Kill|er.Award|
|00001c40| 41 64 72 65 6e 61 6c 69 | 6e 65 28 41 44 52 5f 4d |Adrenali|ne(ADR_M|
|00001c50| 61 6a 6f 72 4b 69 6c 6c | 29 3b 0d 0a 09 09 09 62 |ajorKill|);.....b|
|00001c60| 46 69 72 73 74 42 6c 6f | 6f 64 20 3d 20 54 72 75 |FirstBlo|od = Tru|
|00001c70| 65 3b 0d 0a 09 09 09 69 | 66 20 28 20 54 65 61 6d |e;.....i|f ( Team|
|00001c80| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00001c90| 6e 49 6e 66 6f 28 4b 69 | 6c 6c 65 72 2e 50 6c 61 |nInfo(Ki|ller.Pla|
|00001ca0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00001cb0| 66 6f 29 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |fo) != N|one )...|
|00001cc0| 09 09 09 54 65 61 6d 50 | 6c 61 79 65 72 52 65 70 |...TeamP|layerRep|
|00001cd0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 28 4b 69 6c |lication|Info(Kil|
|00001ce0| 6c 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |ler.Play|erReplic|
|00001cf0| 61 74 69 6f 6e 49 6e 66 | 6f 29 2e 62 46 69 72 73 |ationInf|o).bFirs|
|00001d00| 74 42 6c 6f 6f 64 20 3d | 20 74 72 75 65 3b 0d 0a |tBlood =| true;..|
|00001d10| 09 09 09 42 72 6f 61 64 | 63 61 73 74 4c 6f 63 61 |...Broad|castLoca|
|00001d20| 6c 69 7a 65 64 4d 65 73 | 73 61 67 65 28 20 63 6c |lizedMes|sage( cl|
|00001d30| 61 73 73 27 46 69 72 73 | 74 42 6c 6f 6f 64 4d 65 |ass'Firs|tBloodMe|
|00001d40| 73 73 61 67 65 27 2c 20 | 30 2c 20 4b 69 6c 6c 65 |ssage', |0, Kille|
|00001d50| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00001d60| 69 6f 6e 49 6e 66 6f 20 | 29 3b 0d 0a 09 09 09 53 |ionInfo |);.....S|
|00001d70| 70 65 63 69 61 6c 45 76 | 65 6e 74 28 4b 69 6c 6c |pecialEv|ent(Kill|
|00001d80| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|00001d90| 74 69 6f 6e 49 6e 66 6f | 2c 22 66 69 72 73 74 5f |tionInfo|,"first_|
|00001da0| 62 6c 6f 6f 64 22 29 3b | 0d 0a 09 09 7d 0d 0a 09 |blood");|....}...|
|00001db0| 09 69 66 20 28 20 4b 69 | 6c 6c 65 72 20 3d 3d 20 |.if ( Ki|ller == |
|00001dc0| 4b 69 6c 6c 65 64 20 29 | 0d 0a 09 09 09 4b 69 6c |Killed )|.....Kil|
|00001dd0| 6c 65 72 2e 41 77 61 72 | 64 41 64 72 65 6e 61 6c |ler.Awar|dAdrenal|
|00001de0| 69 6e 65 28 41 44 52 5f | 4d 69 6e 6f 72 45 72 72 |ine(ADR_|MinorErr|
|00001df0| 6f 72 29 3b 0d 0a 09 09 | 65 6c 73 65 20 69 66 20 |or);....|else if |
|00001e00| 28 20 62 54 65 61 6d 47 | 61 6d 65 20 26 26 20 28 |( bTeamG|ame && (|
|00001e10| 4b 69 6c 6c 65 64 2e 50 | 6c 61 79 65 72 52 65 70 |Killed.P|layerRep|
|00001e20| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 54 65 61 |lication|Info.Tea|
|00001e30| 6d 20 3d 3d 20 4b 69 6c | 6c 65 72 2e 50 6c 61 79 |m == Kil|ler.Play|
|00001e40| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00001e50| 6f 2e 54 65 61 6d 29 20 | 29 0d 0a 09 09 09 4b 69 |o.Team) |).....Ki|
|00001e60| 6c 6c 65 72 2e 41 77 61 | 72 64 41 64 72 65 6e 61 |ller.Awa|rdAdrena|
|00001e70| 6c 69 6e 65 28 41 44 52 | 5f 4b 69 6c 6c 54 65 61 |line(ADR|_KillTea|
|00001e80| 6d 4d 61 74 65 29 3b 0d | 0a 09 09 65 6c 73 65 0d |mMate);.|...else.|
|00001e90| 0a 09 09 7b 0d 0a 09 09 | 09 4b 69 6c 6c 65 72 2e |...{....|.Killer.|
|00001ea0| 41 77 61 72 64 41 64 72 | 65 6e 61 6c 69 6e 65 28 |AwardAdr|enaline(|
|00001eb0| 41 44 52 5f 4b 69 6c 6c | 29 3b 0d 0a 09 09 09 69 |ADR_Kill|);.....i|
|00001ec0| 66 20 28 20 4b 69 6c 6c | 65 72 2e 50 61 77 6e 20 |f ( Kill|er.Pawn |
|00001ed0| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 09 7b 0d |!= None |).....{.|
|00001ee0| 0a 09 09 09 09 4b 69 6c | 6c 65 72 2e 50 61 77 6e |.....Kil|ler.Pawn|
|00001ef0| 2e 49 6e 63 72 65 6d 65 | 6e 74 53 70 72 65 65 28 |.Increme|ntSpree(|
|00001f00| 29 3b 0d 0a 09 09 09 09 | 69 66 20 28 20 4b 69 6c |);......|if ( Kil|
|00001f10| 6c 65 72 2e 50 61 77 6e | 2e 47 65 74 53 70 72 65 |ler.Pawn|.GetSpre|
|00001f20| 65 28 29 20 3e 20 34 20 | 29 0d 0a 09 09 09 09 09 |e() > 4 |).......|
|00001f30| 4e 6f 74 69 66 79 53 70 | 72 65 65 28 4b 69 6c 6c |NotifySp|ree(Kill|
|00001f40| 65 72 2c 20 4b 69 6c 6c | 65 72 2e 50 61 77 6e 2e |er, Kill|er.Pawn.|
|00001f50| 47 65 74 53 70 72 65 65 | 28 29 29 3b 0d 0a 09 09 |GetSpree|());....|
|00001f60| 09 7d 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 0d 0a 09 |.}....}.|..}.....|
|00001f70| 2f 2f 20 56 65 68 69 63 | 6c 65 20 53 63 6f 72 65 |// Vehic|le Score|
|00001f80| 20 4b 69 6c 6c 0d 0a 09 | 69 66 20 28 20 4b 69 6c | Kill...|if ( Kil|
|00001f90| 6c 65 72 20 21 3d 20 4e | 6f 6e 65 20 26 26 20 4b |ler != N|one && K|
|00001fa0| 69 6c 6c 65 72 2e 62 49 | 73 50 6c 61 79 65 72 20 |iller.bI|sPlayer |
|00001fb0| 26 26 20 4b 69 6c 6c 65 | 72 2e 50 6c 61 79 65 72 |&& Kille|r.Player|
|00001fc0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 20 |Replicat|ionInfo |
|00001fd0| 21 3d 20 4e 6f 6e 65 20 | 26 26 20 56 65 68 69 63 |!= None |&& Vehic|
|00001fe0| 6c 65 28 4b 69 6c 6c 65 | 64 50 61 77 6e 29 20 21 |le(Kille|dPawn) !|
|00001ff0| 3d 20 4e 6f 6e 65 0d 0a | 09 20 20 20 20 20 26 26 |= None..|. &&|
|00002000| 20 28 4b 69 6c 6c 65 64 | 20 21 3d 20 4e 6f 6e 65 | (Killed| != None|
|00002010| 20 7c 7c 20 56 65 68 69 | 63 6c 65 28 4b 69 6c 6c | || Vehi|cle(Kill|
|00002020| 65 64 50 61 77 6e 29 2e | 62 45 6a 65 63 74 44 72 |edPawn).|bEjectDr|
|00002030| 69 76 65 72 29 20 26 26 | 20 56 65 68 69 63 6c 65 |iver) &&| Vehicle|
|00002040| 28 4b 69 6c 6c 65 64 50 | 61 77 6e 29 2e 49 6e 64 |(KilledP|awn).Ind|
|00002050| 65 70 65 6e 64 65 6e 74 | 56 65 68 69 63 6c 65 28 |ependent|Vehicle(|
|00002060| 29 20 29 0d 0a 09 7b 0d | 0a 09 09 53 63 6f 72 65 |) )...{.|...Score|
|00002070| 20 3d 20 56 65 68 69 63 | 6c 65 53 63 6f 72 65 4b | = Vehic|leScoreK|
|00002080| 69 6c 6c 28 20 4b 69 6c | 6c 65 72 2c 20 4b 69 6c |ill( Kil|ler, Kil|
|00002090| 6c 65 64 2c 20 56 65 68 | 69 63 6c 65 28 4b 69 6c |led, Veh|icle(Kil|
|000020a0| 6c 65 64 50 61 77 6e 29 | 2c 20 4b 69 6c 6c 49 6e |ledPawn)|, KillIn|
|000020b0| 66 6f 20 29 3b 0d 0a 09 | 09 69 66 20 28 20 53 63 |fo );...|.if ( Sc|
|000020c0| 6f 72 65 20 3e 20 30 20 | 29 0d 0a 09 09 7b 0d 0a |ore > 0 |)....{..|
|000020d0| 09 09 09 2f 2a 20 69 66 | 20 64 72 69 76 65 72 28 |.../* if| driver(|
|000020e0| 73 29 20 68 61 76 65 20 | 62 65 65 6e 20 65 6a 65 |s) have |been eje|
|000020f0| 63 74 65 64 20 66 72 6f | 6d 20 76 65 68 69 63 6c |cted fro|m vehicl|
|00002100| 65 2c 20 4b 69 6c 6c 65 | 64 20 3d 3d 20 4e 6f 6e |e, Kille|d == Non|
|00002110| 65 20 2a 2f 0d 0a 09 09 | 09 69 66 20 28 20 4b 69 |e */....|.if ( Ki|
|00002120| 6c 6c 65 64 20 21 3d 20 | 4e 6f 6e 65 20 29 0d 0a |lled != |None )..|
|00002130| 09 09 09 7b 0d 0a 09 09 | 09 09 69 66 20 28 20 21 |...{....|..if ( !|
|00002140| 62 45 6e 65 6d 79 4b 69 | 6c 6c 20 26 26 20 4b 69 |bEnemyKi|ll && Ki|
|00002150| 6c 6c 65 64 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |lled.Pla|yerRepli|
|00002160| 63 61 74 69 6f 6e 49 6e | 66 6f 20 21 3d 20 4e 6f |cationIn|fo != No|
|00002170| 6e 65 20 29 0d 0a 09 09 | 09 09 7b 0d 0a 09 09 09 |ne )....|..{.....|
|00002180| 09 09 53 63 6f 72 65 09 | 09 3d 20 2d 53 63 6f 72 |..Score.|.= -Scor|
|00002190| 65 3b 09 09 09 09 09 2f | 2f 20 73 75 62 73 74 72 |e;...../|/ substr|
|000021a0| 61 63 74 20 73 63 6f 72 | 65 20 69 66 20 74 65 61 |act scor|e if tea|
|000021b0| 6d 20 6b 69 6c 6c 2e 0d | 0a 09 09 09 09 09 4b 69 |m kill..|......Ki|
|000021c0| 6c 6c 49 6e 66 6f 09 3d | 20 22 54 65 61 6d 4b 69 |llInfo.=| "TeamKi|
|000021d0| 6c 6c 5f 22 20 24 20 4b | 69 6c 6c 49 6e 66 6f 3b |ll_" $ K|illInfo;|
|000021e0| 0d 0a 09 09 09 09 7d 0d | 0a 09 09 09 7d 0d 0a 0d |......}.|....}...|
|000021f0| 0a 09 09 09 69 66 20 28 | 20 53 63 6f 72 65 20 21 |....if (| Score !|
|00002200| 3d 20 30 20 29 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 |= 0 )...|..{.....|
|00002210| 09 4b 69 6c 6c 65 72 2e | 50 6c 61 79 65 72 52 65 |.Killer.|PlayerRe|
|00002220| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 53 63 |plicatio|nInfo.Sc|
|00002230| 6f 72 65 20 2b 3d 20 53 | 63 6f 72 65 3b 0d 0a 09 |ore += S|core;...|
|00002240| 09 09 09 4b 69 6c 6c 65 | 72 2e 50 6c 61 79 65 72 |...Kille|r.Player|
|00002250| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00002260| 4e 65 74 55 70 64 61 74 | 65 54 69 6d 65 09 3d 20 |NetUpdat|eTime.= |
|00002270| 4c 65 76 65 6c 2e 54 69 | 6d 65 53 65 63 6f 6e 64 |Level.Ti|meSecond|
|00002280| 73 20 2d 20 31 3b 0d 0a | 09 09 09 09 53 63 6f 72 |s - 1;..|....Scor|
|00002290| 65 45 76 65 6e 74 28 4b | 69 6c 6c 65 72 2e 50 6c |eEvent(K|iller.Pl|
|000022a0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|000022b0| 6e 66 6f 2c 20 53 63 6f | 72 65 2c 20 4b 69 6c 6c |nfo, Sco|re, Kill|
|000022c0| 49 6e 66 6f 29 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 |Info);..|...}....|
|000022d0| 7d 0d 0a 09 7d 0d 0a 0d | 0a 20 20 20 20 73 75 70 |}...}...|. sup|
|000022e0| 65 72 2e 4b 69 6c 6c 65 | 64 28 4b 69 6c 6c 65 72 |er.Kille|d(Killer|
|000022f0| 2c 20 4b 69 6c 6c 65 64 | 2c 20 4b 69 6c 6c 65 64 |, Killed|, Killed|
|00002300| 50 61 77 6e 2c 20 64 61 | 6d 61 67 65 54 79 70 65 |Pawn, da|mageType|
|00002310| 29 3b 0d 0a 7d 0d 0a 0d | 0a 2f 2a 20 73 70 65 63 |);..}...|./* spec|
|00002320| 69 61 6c 20 73 63 6f 72 | 65 6b 69 6c 6c 20 66 75 |ial scor|ekill fu|
|00002330| 6e 63 74 69 6f 6e 20 66 | 6f 72 20 76 65 68 69 63 |nction f|or vehic|
|00002340| 6c 65 73 0d 0a 20 4e 6f | 74 65 20 74 68 61 74 20 |les.. No|te that |
|00002350| 69 74 20 69 73 20 63 61 | 6c 6c 65 64 20 6f 6e 6c |it is ca|lled onl|
|00002360| 79 20 6f 6e 63 65 20 70 | 65 72 20 69 6e 64 65 70 |y once p|er indep|
|00002370| 65 6e 64 61 6e 74 20 76 | 65 68 69 63 6c 65 20 28 |endant v|ehicle (|
|00002380| 69 65 20 6e 6f 74 20 66 | 6f 72 20 61 74 74 61 63 |ie not f|or attac|
|00002390| 68 65 64 20 74 75 72 72 | 65 74 73 20 73 75 62 63 |hed turr|ets subc|
|000023a0| 6c 61 73 73 29 0d 0a 20 | 49 66 20 61 20 70 6c 61 |lass).. |If a pla|
|000023b0| 79 65 72 20 69 73 20 6b | 69 6c 6c 65 64 20 69 6e |yer is k|illed in|
|000023c0| 73 69 64 65 2c 20 6e 6f | 72 6d 61 6c 20 73 63 6f |side, no|rmal sco|
|000023d0| 72 65 6b 69 6c 6c 20 77 | 69 6c 6c 20 61 6c 73 6f |rekill w|ill also|
|000023e0| 20 62 65 20 61 70 70 6c | 69 65 64 20 28 73 6f 20 | be appl|ied (so |
|000023f0| 65 78 74 72 61 20 70 6f | 69 6e 74 73 20 66 6f 72 |extra po|ints for|
|00002400| 20 6b 69 6c 6c 65 64 20 | 70 6c 61 79 65 72 73 29 | killed |players)|
|00002410| 0d 0a 20 2a 2f 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |.. */..f|unction |
|00002420| 69 6e 74 20 56 65 68 69 | 63 6c 65 53 63 6f 72 65 |int Vehi|cleScore|
|00002430| 4b 69 6c 6c 28 20 43 6f | 6e 74 72 6f 6c 6c 65 72 |Kill( Co|ntroller|
|00002440| 20 4b 69 6c 6c 65 72 2c | 20 43 6f 6e 74 72 6f 6c | Killer,| Control|
|00002450| 6c 65 72 20 4b 69 6c 6c | 65 64 2c 20 56 65 68 69 |ler Kill|ed, Vehi|
|00002460| 63 6c 65 20 44 65 73 74 | 72 6f 79 65 64 56 65 68 |cle Dest|royedVeh|
|00002470| 69 63 6c 65 2c 20 6f 75 | 74 20 73 74 72 69 6e 67 |icle, ou|t string|
|00002480| 20 4b 69 6c 6c 49 6e 66 | 6f 20 29 0d 0a 7b 0d 0a | KillInf|o )..{..|
|00002490| 09 2f 2f 6c 6f 67 28 22 | 56 65 68 69 63 6c 65 53 |.//log("|VehicleS|
|000024a0| 63 6f 72 65 4b 69 6c 6c | 20 4b 69 6c 6c 65 72 3a |coreKill| Killer:|
|000024b0| 22 20 40 20 4b 69 6c 6c | 65 72 2e 47 65 74 48 75 |" @ Kill|er.GetHu|
|000024c0| 6d 61 6e 52 65 61 64 61 | 62 6c 65 4e 61 6d 65 28 |manReada|bleName(|
|000024d0| 29 20 40 20 22 4b 69 6c | 6c 65 64 3a 22 20 40 20 |) @ "Kil|led:" @ |
|000024e0| 4b 69 6c 6c 65 64 20 40 | 20 22 44 65 73 74 72 6f |Killed @| "Destro|
|000024f0| 79 65 64 56 65 68 69 63 | 6c 65 3a 22 20 40 20 44 |yedVehic|le:" @ D|
|00002500| 65 73 74 72 6f 79 65 64 | 56 65 68 69 63 6c 65 20 |estroyed|Vehicle |
|00002510| 29 3b 0d 0a 0d 0a 09 2f | 2f 20 42 72 6f 61 64 63 |);...../|/ Broadc|
|00002520| 61 73 74 20 76 65 68 69 | 63 6c 65 20 6b 69 6c 6c |ast vehi|cle kill|
|00002530| 20 6d 65 73 73 61 67 65 | 20 69 66 20 6b 69 6c 6c | message| if kill|
|00002540| 65 64 20 6e 6f 20 70 6c | 61 79 65 72 20 69 6e 73 |ed no pl|ayer ins|
|00002550| 69 64 65 0d 0a 09 69 66 | 20 28 20 4b 69 6c 6c 65 |ide...if| ( Kille|
|00002560| 64 20 3d 3d 20 4e 6f 6e | 65 20 26 26 20 50 6c 61 |d == Non|e && Pla|
|00002570| 79 65 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 28 4b 69 |yerContr|oller(Ki|
|00002580| 6c 6c 65 72 29 20 21 3d | 20 4e 6f 6e 65 20 29 0d |ller) !=| None ).|
|00002590| 0a 09 09 50 6c 61 79 65 | 72 43 6f 6e 74 72 6f 6c |...Playe|rControl|
|000025a0| 6c 65 72 28 4b 69 6c 6c | 65 72 29 2e 54 65 61 6d |ler(Kill|er).Team|
|000025b0| 4d 65 73 73 61 67 65 28 | 20 4b 69 6c 6c 65 72 2e |Message(| Killer.|
|000025c0| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|000025d0| 6e 49 6e 66 6f 2c 20 59 | 6f 75 44 65 73 74 72 6f |nInfo, Y|ouDestro|
|000025e0| 79 65 64 40 44 65 73 74 | 72 6f 79 65 64 56 65 68 |yed@Dest|royedVeh|
|000025f0| 69 63 6c 65 2e 56 65 68 | 69 63 6c 65 4e 61 6d 65 |icle.Veh|icleName|
|00002600| 53 74 72 69 6e 67 40 59 | 6f 75 44 65 73 74 72 6f |String@Y|ouDestro|
|00002610| 79 65 64 54 72 61 69 6c | 65 72 2c 20 27 43 72 69 |yedTrail|er, 'Cri|
|00002620| 74 69 63 61 6c 45 76 65 | 6e 74 27 20 29 3b 0d 0a |ticalEve|nt' );..|
|00002630| 0d 0a 09 69 66 20 28 20 | 4b 69 6c 6c 49 6e 66 6f |...if ( |KillInfo|
|00002640| 20 3d 3d 20 22 22 20 29 | 0d 0a 09 7b 0d 0a 09 09 | == "" )|...{....|
|00002650| 69 66 20 28 20 44 65 73 | 74 72 6f 79 65 64 56 65 |if ( Des|troyedVe|
|00002660| 68 69 63 6c 65 2e 62 4b | 65 79 56 65 68 69 63 6c |hicle.bK|eyVehicl|
|00002670| 65 20 7c 7c 20 44 65 73 | 74 72 6f 79 65 64 56 65 |e || Des|troyedVe|
|00002680| 68 69 63 6c 65 2e 62 48 | 69 67 68 53 63 6f 72 65 |hicle.bH|ighScore|
|00002690| 4b 69 6c 6c 20 29 0d 0a | 09 09 7b 0d 0a 09 09 09 |Kill )..|..{.....|
|000026a0| 4b 69 6c 6c 49 6e 66 6f | 20 3d 20 22 64 65 73 74 |KillInfo| = "dest|
|000026b0| 72 6f 79 65 64 5f 6b 65 | 79 5f 76 65 68 69 63 6c |royed_ke|y_vehicl|
|000026c0| 65 22 3b 0d 0a 09 09 09 | 72 65 74 75 72 6e 20 35 |e";.....|return 5|
|000026d0| 3b 0d 0a 09 09 7d 0d 0a | 09 7d 0d 0a 0d 0a 09 72 |;....}..|.}.....r|
|000026e0| 65 74 75 72 6e 20 30 3b | 0d 0a 7d 0d 0a 0d 0a 0d |eturn 0;|..}.....|
|000026f0| 0a 66 75 6e 63 74 69 6f | 6e 20 49 6e 69 74 4c 6f |.functio|n InitLo|
|00002700| 67 67 69 6e 67 28 29 0d | 0a 7b 0d 0a 09 53 75 70 |gging().|.{...Sup|
|00002710| 65 72 2e 49 6e 69 74 4c | 6f 67 67 69 6e 67 28 29 |er.InitL|ogging()|
|00002720| 3b 0d 0a 7d 0d 0a 0d 0a | 73 74 61 74 69 63 20 66 |;..}....|static f|
|00002730| 75 6e 63 74 69 6f 6e 20 | 62 6f 6f 6c 20 4e 65 76 |unction |bool Nev|
|00002740| 65 72 41 6c 6c 6f 77 54 | 72 61 6e 73 6c 6f 63 28 |erAllowT|ransloc(|
|00002750| 29 0d 0a 7b 0d 0a 09 72 | 65 74 75 72 6e 20 66 61 |)..{...r|eturn fa|
|00002760| 6c 73 65 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |lse;..}.|...funct|
|00002770| 69 6f 6e 20 62 6f 6f 6c | 20 41 6c 6c 6f 77 54 72 |ion bool| AllowTr|
|00002780| 61 6e 73 6c 6f 63 28 29 | 0d 0a 7b 0d 0a 09 72 65 |ansloc()|..{...re|
|00002790| 74 75 72 6e 20 62 41 6c | 6c 6f 77 54 72 61 6e 73 |turn bAl|lowTrans|
|000027a0| 20 7c 7c 20 62 4f 76 65 | 72 72 69 64 65 54 72 61 | || bOve|rrideTra|
|000027b0| 6e 73 6c 6f 63 61 74 6f | 72 3b 0d 0a 7d 0d 0a 0d |nslocato|r;..}...|
|000027c0| 0a 66 75 6e 63 74 69 6f | 6e 20 41 64 64 47 61 6d |.functio|n AddGam|
|000027d0| 65 53 70 65 63 69 66 69 | 63 49 6e 76 65 6e 74 6f |eSpecifi|cInvento|
|000027e0| 72 79 28 50 61 77 6e 20 | 70 29 0d 0a 7b 0d 0a 20 |ry(Pawn |p)..{.. |
|000027f0| 20 20 20 69 66 20 28 20 | 41 6c 6c 6f 77 54 72 61 | if ( |AllowTra|
|00002800| 6e 73 6c 6f 63 28 29 20 | 29 0d 0a 20 20 20 20 20 |nsloc() |).. |
|00002810| 20 20 20 70 2e 43 72 65 | 61 74 65 49 6e 76 65 6e | p.Cre|ateInven|
|00002820| 74 6f 72 79 28 22 58 57 | 65 61 70 6f 6e 73 2e 54 |tory("XW|eapons.T|
|00002830| 72 61 6e 73 4c 61 75 6e | 63 68 65 72 22 29 3b 0d |ransLaun|cher");.|
|00002840| 0a 20 20 20 20 53 75 70 | 65 72 2e 41 64 64 47 61 |. Sup|er.AddGa|
|00002850| 6d 65 53 70 65 63 69 66 | 69 63 49 6e 76 65 6e 74 |meSpecif|icInvent|
|00002860| 6f 72 79 28 70 29 3b 0d | 0a 7d 0d 0a 0d 0a 2f 2f |ory(p);.|.}....//|
|00002870| 20 50 61 72 73 65 20 6f | 70 74 69 6f 6e 73 20 66 | Parse o|ptions f|
|00002880| 6f 72 20 74 68 69 73 20 | 67 61 6d 65 2e 2e 2e 0d |or this |game....|
|00002890| 0a 65 76 65 6e 74 20 49 | 6e 69 74 47 61 6d 65 28 |.event I|nitGame(|
|000028a0| 20 73 74 72 69 6e 67 20 | 4f 70 74 69 6f 6e 73 2c | string |Options,|
|000028b0| 20 6f 75 74 20 73 74 72 | 69 6e 67 20 45 72 72 6f | out str|ing Erro|
|000028c0| 72 20 29 0d 0a 7b 0d 0a | 20 20 20 20 6c 6f 63 61 |r )..{..| loca|
|000028d0| 6c 20 73 74 72 69 6e 67 | 20 49 6e 4f 70 74 3b 0d |l string| InOpt;.|
|000028e0| 0a 09 6c 6f 63 61 6c 20 | 69 6e 74 20 4c 65 76 65 |..local |int Leve|
|000028f0| 6c 4d 69 6e 50 6c 61 79 | 65 72 73 3b 0d 0a 0d 0a |lMinPlay|ers;....|
|00002900| 20 20 20 20 53 75 70 65 | 72 2e 49 6e 69 74 47 61 | Supe|r.InitGa|
|00002910| 6d 65 28 4f 70 74 69 6f | 6e 73 2c 20 45 72 72 6f |me(Optio|ns, Erro|
|00002920| 72 29 3b 0d 0a 0d 0a 20 | 20 20 20 2f 2f 20 66 69 |r);.... | // fi|
|00002930| 6e 64 20 4c 65 76 65 6c | 27 73 20 4c 65 76 65 6c |nd Level|'s Level|
|00002940| 47 61 6d 65 52 75 6c 65 | 73 20 61 63 74 6f 72 20 |GameRule|s actor |
|00002950| 69 66 20 69 74 20 65 78 | 69 73 74 73 0d 0a 20 20 |if it ex|ists.. |
|00002960| 20 20 46 6f 72 45 61 63 | 68 20 41 6c 6c 41 63 74 | ForEac|h AllAct|
|00002970| 6f 72 73 28 63 6c 61 73 | 73 27 4c 65 76 65 6c 47 |ors(clas|s'LevelG|
|00002980| 61 6d 65 52 75 6c 65 73 | 27 2c 20 4c 65 76 65 6c |ameRules|', Level|
|00002990| 52 75 6c 65 73 29 0d 0a | 20 20 20 20 20 20 20 20 |Rules)..| |
|000029a0| 62 72 65 61 6b 3b 0d 0a | 20 20 20 20 69 66 20 28 |break;..| if (|
|000029b0| 20 4c 65 76 65 6c 52 75 | 6c 65 73 20 21 3d 20 4e | LevelRu|les != N|
|000029c0| 6f 6e 65 20 29 0d 0a 09 | 09 4c 65 76 65 6c 52 75 |one )...|.LevelRu|
|000029d0| 6c 65 73 2e 55 70 64 61 | 74 65 47 61 6d 65 28 73 |les.Upda|teGame(s|
|000029e0| 65 6c 66 29 3b 0d 0a 0d | 0a 09 69 66 20 28 20 28 |elf);...|..if ( (|
|000029f0| 43 75 72 72 65 6e 74 47 | 61 6d 65 50 72 6f 66 69 |CurrentG|ameProfi|
|00002a00| 6c 65 20 3d 3d 20 4e 6f | 6e 65 29 20 26 26 20 28 |le == No|ne) && (|
|00002a10| 4c 65 66 74 28 73 74 72 | 69 6e 67 28 6c 65 76 65 |Left(str|ing(leve|
|00002a20| 6c 29 2c 33 29 20 7e 3d | 20 22 54 55 54 22 29 20 |l),3) ~=| "TUT") |
|00002a30| 29 0d 0a 09 7b 0d 0a 09 | 09 69 66 20 28 20 47 6f |)...{...|.if ( Go|
|00002a40| 61 6c 53 63 6f 72 65 20 | 21 3d 20 30 20 29 0d 0a |alScore |!= 0 )..|
|00002a50| 09 09 09 47 6f 61 6c 53 | 63 6f 72 65 20 3d 20 4d |...GoalS|core = M|
|00002a60| 61 78 28 47 6f 61 6c 53 | 63 6f 72 65 2c 20 33 29 |ax(GoalS|core, 3)|
|00002a70| 3b 0d 0a 09 09 69 66 20 | 28 20 28 54 69 6d 65 4c |;....if |( (TimeL|
|00002a80| 69 6d 69 74 20 21 3d 20 | 30 29 20 26 26 20 28 54 |imit != |0) && (T|
|00002a90| 69 6d 65 4c 69 6d 69 74 | 20 3c 20 31 30 29 20 29 |imeLimit| < 10) )|
|00002aa0| 0d 0a 09 09 09 54 69 6d | 65 4c 69 6d 69 74 20 3d |.....Tim|eLimit =|
|00002ab0| 20 31 30 3b 0d 0a 20 20 | 20 20 09 52 65 6d 61 69 | 10;.. | .Remai|
|00002ac0| 6e 69 6e 67 54 69 6d 65 | 20 3d 20 36 30 20 2a 20 |ningTime| = 60 * |
|00002ad0| 54 69 6d 65 4c 69 6d 69 | 74 3b 0d 0a 09 09 62 54 |TimeLimi|t;....bT|
|00002ae0| 6f 75 72 6e 61 6d 65 6e | 74 20 3d 20 66 61 6c 73 |ournamen|t = fals|
|00002af0| 65 3b 0d 0a 09 09 62 51 | 75 69 63 6b 53 74 61 72 |e;....bQ|uickStar|
|00002b00| 74 20 3d 20 74 72 75 65 | 3b 0d 0a 09 09 72 65 74 |t = true|;....ret|
|00002b10| 75 72 6e 3b 0d 0a 09 7d | 0d 0a 0d 0a 20 20 20 20 |urn;...}|.... |
|00002b20| 53 65 74 47 61 6d 65 53 | 70 65 65 64 28 47 61 6d |SetGameS|peed(Gam|
|00002b30| 65 53 70 65 65 64 29 3b | 0d 0a 20 20 20 20 4d 61 |eSpeed);|.. Ma|
|00002b40| 78 4c 69 76 65 73 20 3d | 20 4d 61 78 28 30 2c 47 |xLives =| Max(0,G|
|00002b50| 65 74 49 6e 74 4f 70 74 | 69 6f 6e 28 20 4f 70 74 |etIntOpt|ion( Opt|
|00002b60| 69 6f 6e 73 2c 20 22 4d | 61 78 4c 69 76 65 73 22 |ions, "M|axLives"|
|00002b70| 2c 20 4d 61 78 4c 69 76 | 65 73 20 29 29 3b 0d 0a |, MaxLiv|es ));..|
|00002b80| 20 20 20 20 69 66 20 28 | 20 4d 61 78 4c 69 76 65 | if (| MaxLive|
|00002b90| 73 20 3e 20 30 20 29 0d | 0a 09 09 62 46 6f 72 63 |s > 0 ).|...bForc|
|00002ba0| 65 52 65 73 70 61 77 6e | 20 3d 20 74 72 75 65 3b |eRespawn| = true;|
|00002bb0| 0d 0a 09 65 6c 73 65 20 | 69 66 20 28 20 44 65 66 |...else |if ( Def|
|00002bc0| 61 75 6c 74 4d 61 78 4c | 69 76 65 73 20 3e 20 30 |aultMaxL|ives > 0|
|00002bd0| 20 29 0d 0a 09 7b 0d 0a | 09 09 62 46 6f 72 63 65 | )...{..|..bForce|
|00002be0| 52 65 73 70 61 77 6e 20 | 3d 20 74 72 75 65 3b 0d |Respawn |= true;.|
|00002bf0| 0a 09 09 4d 61 78 4c 69 | 76 65 73 20 3d 20 44 65 |...MaxLi|ves = De|
|00002c00| 66 61 75 6c 74 4d 61 78 | 4c 69 76 65 73 3b 0d 0a |faultMax|Lives;..|
|00002c10| 09 7d 0d 0a 20 20 20 20 | 47 6f 61 6c 53 63 6f 72 |.}.. |GoalScor|
|00002c20| 65 20 3d 20 4d 61 78 28 | 30 2c 47 65 74 49 6e 74 |e = Max(|0,GetInt|
|00002c30| 4f 70 74 69 6f 6e 28 20 | 4f 70 74 69 6f 6e 73 2c |Option( |Options,|
|00002c40| 20 22 47 6f 61 6c 53 63 | 6f 72 65 22 2c 20 47 6f | "GoalSc|ore", Go|
|00002c50| 61 6c 53 63 6f 72 65 20 | 29 29 3b 0d 0a 20 20 20 |alScore |));.. |
|00002c60| 20 54 69 6d 65 4c 69 6d | 69 74 20 3d 20 4d 61 78 | TimeLim|it = Max|
|00002c70| 28 30 2c 47 65 74 49 6e | 74 4f 70 74 69 6f 6e 28 |(0,GetIn|tOption(|
|00002c80| 20 4f 70 74 69 6f 6e 73 | 2c 20 22 54 69 6d 65 4c | Options|, "TimeL|
|00002c90| 69 6d 69 74 22 2c 20 54 | 69 6d 65 4c 69 6d 69 74 |imit", T|imeLimit|
|00002ca0| 20 29 29 3b 0d 0a 09 69 | 66 20 28 20 44 65 66 61 | ));...i|f ( Defa|
|00002cb0| 75 6c 74 4d 61 78 4c 69 | 76 65 73 20 3e 20 30 20 |ultMaxLi|ves > 0 |
|00002cc0| 29 0d 0a 09 09 54 69 6d | 65 4c 69 6d 69 74 20 3d |)....Tim|eLimit =|
|00002cd0| 20 30 3b 0d 0a 09 49 6e | 4f 70 74 20 3d 20 50 61 | 0;...In|Opt = Pa|
|00002ce0| 72 73 65 4f 70 74 69 6f | 6e 28 20 4f 70 74 69 6f |rseOptio|n( Optio|
|00002cf0| 6e 73 2c 20 22 54 72 61 | 6e 73 6c 6f 63 61 74 6f |ns, "Tra|nslocato|
|00002d00| 72 22 29 3b 0d 0a 20 20 | 20 20 2f 2f 20 46 6f 72 |r");.. | // For|
|00002d10| 20 69 6e 73 74 61 6e 74 | 20 61 63 74 69 6f 6e 2c | instant| action,|
|00002d20| 20 75 73 65 20 6d 61 70 | 20 64 65 66 61 75 6c 74 | use map| default|
|00002d30| 73 0d 0a 20 20 20 20 69 | 66 20 28 20 49 6e 4f 70 |s.. i|f ( InOp|
|00002d40| 74 20 21 3d 20 22 22 20 | 29 0d 0a 20 20 20 20 7b |t != "" |).. {|
|00002d50| 0d 0a 20 20 20 20 20 20 | 20 20 6c 6f 67 28 22 54 |.. | log("T|
|00002d60| 72 61 6e 73 6c 6f 63 61 | 74 6f 72 73 3a 20 22 24 |ransloca|tors: "$|
|00002d70| 62 6f 6f 6c 28 49 6e 4f | 70 74 29 29 3b 0d 0a 20 |bool(InO|pt));.. |
|00002d80| 20 20 20 20 20 20 20 62 | 41 6c 6c 6f 77 54 72 61 | b|AllowTra|
|00002d90| 6e 73 20 3d 20 62 6f 6f | 6c 28 49 6e 4f 70 74 29 |ns = boo|l(InOpt)|
|00002da0| 3b 0d 0a 20 20 20 20 7d | 0d 0a 20 20 20 20 49 6e |;.. }|.. In|
|00002db0| 4f 70 74 20 3d 20 50 61 | 72 73 65 4f 70 74 69 6f |Opt = Pa|rseOptio|
|00002dc0| 6e 28 20 4f 70 74 69 6f | 6e 73 2c 20 22 62 41 75 |n( Optio|ns, "bAu|
|00002dd0| 74 6f 4e 75 6d 42 6f 74 | 73 22 29 3b 0d 0a 20 20 |toNumBot|s");.. |
|00002de0| 20 20 69 66 20 28 20 49 | 6e 4f 70 74 20 21 3d 20 | if ( I|nOpt != |
|00002df0| 22 22 20 29 0d 0a 20 20 | 20 20 7b 0d 0a 20 20 20 |"" ).. | {.. |
|00002e00| 20 20 20 20 20 6c 6f 67 | 28 22 62 41 75 74 6f 4e | log|("bAutoN|
|00002e10| 75 6d 42 6f 74 73 3a 20 | 22 24 62 6f 6f 6c 28 49 |umBots: |"$bool(I|
|00002e20| 6e 4f 70 74 29 29 3b 0d | 0a 20 20 20 20 20 20 20 |nOpt));.|. |
|00002e30| 20 62 41 75 74 6f 4e 75 | 6d 42 6f 74 73 20 3d 20 | bAutoNu|mBots = |
|00002e40| 62 6f 6f 6c 28 49 6e 4f | 70 74 29 3b 0d 0a 20 20 |bool(InO|pt);.. |
|00002e50| 20 20 7d 0d 0a 20 20 20 | 20 69 66 20 28 20 62 54 | }.. | if ( bT|
|00002e60| 65 61 6d 47 61 6d 65 20 | 26 26 20 28 4c 65 76 65 |eamGame |&& (Leve|
|00002e70| 6c 2e 4e 65 74 4d 6f 64 | 65 20 21 3d 20 4e 4d 5f |l.NetMod|e != NM_|
|00002e80| 53 74 61 6e 64 61 6c 6f | 6e 65 29 20 29 0d 0a 20 |Standalo|ne) ).. |
|00002e90| 20 20 20 7b 0d 0a 09 09 | 49 6e 4f 70 74 20 3d 20 | {....|InOpt = |
|00002ea0| 50 61 72 73 65 4f 70 74 | 69 6f 6e 28 20 4f 70 74 |ParseOpt|ion( Opt|
|00002eb0| 69 6f 6e 73 2c 20 22 56 | 73 42 6f 74 73 22 29 3b |ions, "V|sBots");|
|00002ec0| 0d 0a 09 09 69 66 20 28 | 20 49 6e 4f 70 74 20 21 |....if (| InOpt !|
|00002ed0| 3d 20 22 22 20 29 0d 0a | 09 09 7b 0d 0a 09 09 09 |= "" )..|..{.....|
|00002ee0| 6c 6f 67 28 22 62 50 6c | 61 79 65 72 73 56 73 42 |log("bPl|ayersVsB|
|00002ef0| 6f 74 73 3a 20 22 24 62 | 6f 6f 6c 28 49 6e 4f 70 |ots: "$b|ool(InOp|
|00002f00| 74 29 29 3b 0d 0a 09 09 | 09 62 50 6c 61 79 65 72 |t));....|.bPlayer|
|00002f10| 73 56 73 42 6f 74 73 20 | 3d 20 62 6f 6f 6c 28 49 |sVsBots |= bool(I|
|00002f20| 6e 4f 70 74 29 3b 0d 0a | 09 09 7d 0d 0a 09 09 69 |nOpt);..|..}....i|
|00002f30| 66 20 28 20 62 50 6c 61 | 79 65 72 73 56 73 42 6f |f ( bPla|yersVsBo|
|00002f40| 74 73 20 29 0d 0a 09 09 | 09 62 41 75 74 6f 4e 75 |ts )....|.bAutoNu|
|00002f50| 6d 42 6f 74 73 20 3d 20 | 66 61 6c 73 65 3b 0d 0a |mBots = |false;..|
|00002f60| 09 7d 0d 0a 20 20 20 20 | 49 6e 4f 70 74 20 3d 20 |.}.. |InOpt = |
|00002f70| 50 61 72 73 65 4f 70 74 | 69 6f 6e 28 20 4f 70 74 |ParseOpt|ion( Opt|
|00002f80| 69 6f 6e 73 2c 20 22 41 | 75 74 6f 41 64 6a 75 73 |ions, "A|utoAdjus|
|00002f90| 74 22 29 3b 0d 0a 20 20 | 20 20 69 66 20 28 20 49 |t");.. | if ( I|
|00002fa0| 6e 4f 70 74 20 21 3d 20 | 22 22 20 29 0d 0a 20 20 |nOpt != |"" ).. |
|00002fb0| 20 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 62 41 64 | {.. | bAd|
|00002fc0| 6a 75 73 74 53 6b 69 6c | 6c 20 3d 20 21 62 54 65 |justSkil|l = !bTe|
|00002fd0| 61 6d 47 61 6d 65 20 26 | 26 20 62 6f 6f 6c 28 49 |amGame &|& bool(I|
|00002fe0| 6e 4f 70 74 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |nOpt);..| |
|00002ff0| 6c 6f 67 28 22 41 64 6a | 75 73 74 20 73 6b 69 6c |log("Adj|ust skil|
|00003000| 6c 20 22 24 62 41 64 6a | 75 73 74 53 6b 69 6c 6c |l "$bAdj|ustSkill|
|00003010| 29 3b 0d 0a 20 20 20 20 | 7d 0d 0a 20 20 20 20 49 |);.. |}.. I|
|00003020| 6e 4f 70 74 20 3d 20 50 | 61 72 73 65 4f 70 74 69 |nOpt = P|arseOpti|
|00003030| 6f 6e 28 20 4f 70 74 69 | 6f 6e 73 2c 20 22 50 6c |on( Opti|ons, "Pl|
|00003040| 61 79 65 72 73 4d 75 73 | 74 42 65 52 65 61 64 79 |ayersMus|tBeReady|
|00003050| 22 29 3b 0d 0a 20 20 20 | 20 69 66 20 28 20 49 6e |");.. | if ( In|
|00003060| 4f 70 74 20 21 3d 20 22 | 22 20 29 0d 0a 20 20 20 |Opt != "|" ).. |
|00003070| 20 7b 0d 0a 20 20 20 20 | 09 6c 6f 67 28 22 50 6c | {.. |.log("Pl|
|00003080| 61 79 65 72 4d 75 73 74 | 42 65 52 65 61 64 79 3a |ayerMust|BeReady:|
|00003090| 20 22 24 42 6f 6f 6c 28 | 49 6e 4f 70 74 29 29 3b | "$Bool(|InOpt));|
|000030a0| 0d 0a 20 20 20 20 20 20 | 20 20 62 50 6c 61 79 65 |.. | bPlaye|
|000030b0| 72 73 4d 75 73 74 42 65 | 52 65 61 64 79 20 3d 20 |rsMustBe|Ready = |
|000030c0| 62 6f 6f 6c 28 49 6e 4f | 70 74 29 3b 0d 0a 20 20 |bool(InO|pt);.. |
|000030d0| 20 20 7d 0d 0a 0d 0a 09 | 45 6e 65 6d 79 52 6f 73 | }.....|EnemyRos|
|000030e0| 74 65 72 4e 61 6d 65 20 | 3d 20 50 61 72 73 65 4f |terName |= ParseO|
|000030f0| 70 74 69 6f 6e 28 20 4f | 70 74 69 6f 6e 73 2c 20 |ption( O|ptions, |
|00003100| 22 44 4d 54 65 61 6d 22 | 29 3b 0d 0a 09 69 66 20 |"DMTeam"|);...if |
|00003110| 28 20 45 6e 65 6d 79 52 | 6f 73 74 65 72 4e 61 6d |( EnemyR|osterNam|
|00003120| 65 20 21 3d 20 22 22 20 | 29 0d 0a 09 09 62 43 75 |e != "" |)....bCu|
|00003130| 73 74 6f 6d 42 6f 74 73 | 20 3d 20 74 72 75 65 3b |stomBots| = true;|
|00003140| 0d 0a 0d 0a 20 20 20 20 | 2f 2f 20 53 50 0d 0a 20 |.... |// SP.. |
|00003150| 20 20 20 69 66 20 28 43 | 75 72 72 65 6e 74 47 61 | if (C|urrentGa|
|00003160| 6d 65 50 72 6f 66 69 6c | 65 20 21 3d 20 4e 6f 6e |meProfil|e != Non|
|00003170| 65 29 0d 0a 20 20 20 20 | 7b 0d 0a 09 09 4d 61 78 |e).. |{....Max|
|00003180| 4c 69 76 65 73 20 3d 20 | 30 3b 0d 0a 09 09 62 41 |Lives = |0;....bA|
|00003190| 6c 6c 6f 77 54 72 61 6e | 73 20 3d 20 64 65 66 61 |llowTran|s = defa|
|000031a0| 75 6c 74 2e 62 44 65 66 | 61 75 6c 74 54 72 61 6e |ult.bDef|aultTran|
|000031b0| 73 6c 6f 63 61 74 6f 72 | 3b 0d 0a 20 20 20 20 20 |slocator|;.. |
|000031c0| 20 20 20 62 41 64 6a 75 | 73 74 53 6b 69 6c 6c 20 | bAdju|stSkill |
|000031d0| 3d 20 66 61 6c 73 65 3b | 0d 0a 20 20 20 20 7d 0d |= false;|.. }.|
|000031e0| 0a 0d 0a 20 20 20 20 69 | 66 20 28 48 61 73 4f 70 |... i|f (HasOp|
|000031f0| 74 69 6f 6e 28 4f 70 74 | 69 6f 6e 73 2c 20 22 4e |tion(Opt|ions, "N|
|00003200| 75 6d 42 6f 74 73 22 29 | 29 0d 0a 20 20 20 20 09 |umBots")|).. .|
|00003210| 62 41 75 74 6f 4e 75 6d | 42 6f 74 73 20 3d 20 66 |bAutoNum|Bots = f|
|00003220| 61 6c 73 65 3b 0d 0a 20 | 20 20 20 69 66 20 28 62 |alse;.. | if (b|
|00003230| 41 75 74 6f 4e 75 6d 42 | 6f 74 73 20 26 26 20 4c |AutoNumB|ots && L|
|00003240| 65 76 65 6c 2e 4e 65 74 | 4d 6f 64 65 20 3d 3d 20 |evel.Net|Mode == |
|00003250| 4e 4d 5f 53 74 61 6e 64 | 61 6c 6f 6e 65 29 0d 0a |NM_Stand|alone)..|
|00003260| 20 20 20 20 7b 0d 0a 20 | 20 20 20 20 20 20 20 4c | {.. | L|
|00003270| 65 76 65 6c 4d 69 6e 50 | 6c 61 79 65 72 73 20 3d |evelMinP|layers =|
|00003280| 20 47 65 74 4d 69 6e 50 | 6c 61 79 65 72 73 28 29 | GetMinP|layers()|
|00003290| 3b 0d 0a 0d 0a 09 09 69 | 66 20 28 20 62 54 65 61 |;......i|f ( bTea|
|000032a0| 6d 67 61 6d 65 20 26 26 | 20 62 4d 75 73 74 48 61 |mgame &&| bMustHa|
|000032b0| 76 65 4d 75 6c 74 69 70 | 6c 65 50 6c 61 79 65 72 |veMultip|lePlayer|
|000032c0| 73 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 69 66 20 |s )....{|.....if |
|000032d0| 28 20 4c 65 76 65 6c 4d | 69 6e 50 6c 61 79 65 72 |( LevelM|inPlayer|
|000032e0| 73 20 3c 20 34 20 29 0d | 0a 09 09 09 09 4c 65 76 |s < 4 ).|.....Lev|
|000032f0| 65 6c 4d 69 6e 50 6c 61 | 79 65 72 73 20 3d 20 34 |elMinPla|yers = 4|
|00003300| 3b 0d 0a 09 09 09 65 6c | 73 65 20 69 66 20 28 20 |;.....el|se if ( |
|00003310| 28 4c 65 76 65 6c 4d 69 | 6e 50 6c 61 79 65 72 73 |(LevelMi|nPlayers|
|00003320| 20 26 20 31 29 20 3d 3d | 20 31 20 29 0d 0a 09 09 | & 1) ==| 1 )....|
|00003330| 09 09 4c 65 76 65 6c 4d | 69 6e 50 6c 61 79 65 72 |..LevelM|inPlayer|
|00003340| 73 2b 2b 3b 0d 0a 09 09 | 7d 0d 0a 09 09 65 6c 73 |s++;....|}....els|
|00003350| 65 20 69 66 28 20 4c 65 | 76 65 6c 4d 69 6e 50 6c |e if( Le|velMinPl|
|00003360| 61 79 65 72 73 20 3c 20 | 32 20 29 0d 0a 20 20 20 |ayers < |2 ).. |
|00003370| 20 20 20 20 20 20 20 20 | 20 4c 65 76 65 6c 4d 69 | | LevelMi|
|00003380| 6e 50 6c 61 79 65 72 73 | 20 3d 20 32 3b 0d 0a 0d |nPlayers| = 2;...|
|00003390| 0a 20 20 20 20 20 20 20 | 20 49 6e 69 74 69 61 6c |. | Initial|
|000033a0| 42 6f 74 73 20 3d 20 4d | 61 78 28 30 2c 4c 65 76 |Bots = M|ax(0,Lev|
|000033b0| 65 6c 4d 69 6e 50 6c 61 | 79 65 72 73 20 2d 20 31 |elMinPla|yers - 1|
|000033c0| 29 3b 0d 0a 20 20 20 20 | 7d 0d 0a 20 20 20 20 65 |);.. |}.. e|
|000033d0| 6c 73 65 0d 0a 20 20 20 | 20 7b 0d 0a 20 20 20 20 |lse.. | {.. |
|000033e0| 20 20 20 20 4d 69 6e 50 | 6c 61 79 65 72 73 20 3d | MinP|layers =|
|000033f0| 20 43 6c 61 6d 70 28 47 | 65 74 49 6e 74 4f 70 74 | Clamp(G|etIntOpt|
|00003400| 69 6f 6e 28 20 4f 70 74 | 69 6f 6e 73 2c 20 22 4d |ion( Opt|ions, "M|
|00003410| 69 6e 50 6c 61 79 65 72 | 73 22 2c 20 4d 69 6e 50 |inPlayer|s", MinP|
|00003420| 6c 61 79 65 72 73 20 29 | 2c 30 2c 33 32 29 3b 0d |layers )|,0,32);.|
|00003430| 0a 20 20 20 20 20 20 20 | 20 49 6e 69 74 69 61 6c |. | Initial|
|00003440| 42 6f 74 73 20 3d 20 43 | 6c 61 6d 70 28 47 65 74 |Bots = C|lamp(Get|
|00003450| 49 6e 74 4f 70 74 69 6f | 6e 28 20 4f 70 74 69 6f |IntOptio|n( Optio|
|00003460| 6e 73 2c 20 22 4e 75 6d | 42 6f 74 73 22 2c 20 49 |ns, "Num|Bots", I|
|00003470| 6e 69 74 69 61 6c 42 6f | 74 73 20 29 2c 30 2c 33 |nitialBo|ts ),0,3|
|00003480| 32 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 69 66 20 |2);.. | if |
|00003490| 28 20 62 50 6c 61 79 65 | 72 73 56 73 42 6f 74 73 |( bPlaye|rsVsBots|
|000034a0| 20 29 0d 0a 09 09 09 4d | 69 6e 50 6c 61 79 65 72 | ).....M|inPlayer|
|000034b0| 73 20 3d 20 32 3b 0d 0a | 20 20 20 20 7d 0d 0a 0d |s = 2;..| }...|
|000034c0| 0a 20 20 20 20 52 65 6d | 61 69 6e 69 6e 67 54 69 |. Rem|ainingTi|
|000034d0| 6d 65 20 3d 20 36 30 20 | 2a 20 54 69 6d 65 4c 69 |me = 60 |* TimeLi|
|000034e0| 6d 69 74 3b 0d 0a 0d 0a | 20 20 20 20 49 6e 4f 70 |mit;....| InOp|
|000034f0| 74 20 3d 20 50 61 72 73 | 65 4f 70 74 69 6f 6e 28 |t = Pars|eOption(|
|00003500| 20 4f 70 74 69 6f 6e 73 | 2c 20 22 57 65 61 70 6f | Options|, "Weapo|
|00003510| 6e 53 74 61 79 22 29 3b | 0d 0a 20 20 20 20 69 66 |nStay");|.. if|
|00003520| 20 28 20 49 6e 4f 70 74 | 20 21 3d 20 22 22 20 29 | ( InOpt| != "" )|
|00003530| 0d 0a 20 20 20 20 7b 0d | 0a 20 20 20 20 20 20 20 |.. {.|. |
|00003540| 20 6c 6f 67 28 22 57 65 | 61 70 6f 6e 53 74 61 79 | log("We|aponStay|
|00003550| 3a 20 22 24 62 6f 6f 6c | 28 49 6e 4f 70 74 29 29 |: "$bool|(InOpt))|
|00003560| 3b 0d 0a 20 20 20 20 20 | 20 20 20 62 57 65 61 70 |;.. | bWeap|
|00003570| 6f 6e 53 74 61 79 20 3d | 20 62 6f 6f 6c 28 49 6e |onStay =| bool(In|
|00003580| 4f 70 74 29 3b 0d 0a 20 | 20 20 20 7d 0d 0a 0d 0a |Opt);.. | }....|
|00003590| 09 69 66 20 28 20 62 54 | 6f 75 72 6e 61 6d 65 6e |.if ( bT|ournamen|
|000035a0| 74 20 29 0d 0a 09 09 62 | 54 6f 75 72 6e 61 6d 65 |t )....b|Tourname|
|000035b0| 6e 74 20 3d 20 28 47 65 | 74 49 6e 74 4f 70 74 69 |nt = (Ge|tIntOpti|
|000035c0| 6f 6e 28 20 4f 70 74 69 | 6f 6e 73 2c 20 22 54 6f |on( Opti|ons, "To|
|000035d0| 75 72 6e 61 6d 65 6e 74 | 22 2c 20 31 20 29 20 3e |urnament|", 1 ) >|
|000035e0| 20 30 29 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 09 62 | 0);...e|lse....b|
|000035f0| 54 6f 75 72 6e 61 6d 65 | 6e 74 20 3d 20 28 47 65 |Tourname|nt = (Ge|
|00003600| 74 49 6e 74 4f 70 74 69 | 6f 6e 28 20 4f 70 74 69 |tIntOpti|on( Opti|
|00003610| 6f 6e 73 2c 20 22 54 6f | 75 72 6e 61 6d 65 6e 74 |ons, "To|urnament|
|00003620| 22 2c 20 30 20 29 20 3e | 20 30 29 3b 0d 0a 0d 0a |", 0 ) >| 0);....|
|00003630| 20 20 20 20 69 66 20 28 | 20 62 54 6f 75 72 6e 61 | if (| bTourna|
|00003640| 6d 65 6e 74 20 29 0d 0a | 20 20 20 20 20 20 20 20 |ment )..| |
|00003650| 43 68 65 63 6b 52 65 61 | 64 79 28 29 3b 0d 0a 20 |CheckRea|dy();.. |
|00003660| 20 20 20 62 57 61 69 74 | 46 6f 72 4e 65 74 50 6c | bWait|ForNetPl|
|00003670| 61 79 65 72 73 20 3d 20 | 28 20 4c 65 76 65 6c 2e |ayers = |( Level.|
|00003680| 4e 65 74 4d 6f 64 65 20 | 21 3d 20 4e 4d 5f 53 74 |NetMode |!= NM_St|
|00003690| 61 6e 64 41 6c 6f 6e 65 | 20 29 3b 0d 0a 0d 0a 20 |andAlone| );.... |
|000036a0| 20 20 20 49 6e 4f 70 74 | 20 3d 20 50 61 72 73 65 | InOpt| = Parse|
|000036b0| 4f 70 74 69 6f 6e 28 4f | 70 74 69 6f 6e 73 2c 22 |Option(O|ptions,"|
|000036c0| 51 75 69 63 6b 53 74 61 | 72 74 22 29 3b 0d 0a 20 |QuickSta|rt");.. |
|000036d0| 20 20 20 69 66 20 28 20 | 49 6e 4f 70 74 20 21 3d | if ( |InOpt !=|
|000036e0| 20 22 22 20 29 0d 0a 09 | 09 62 51 75 69 63 6b 53 | "" )...|.bQuickS|
|000036f0| 74 61 72 74 20 3d 20 74 | 72 75 65 3b 0d 0a 0d 0a |tart = t|rue;....|
|00003700| 20 20 20 20 41 64 6a 75 | 73 74 65 64 44 69 66 66 | Adju|stedDiff|
|00003710| 69 63 75 6c 74 79 20 3d | 20 47 61 6d 65 44 69 66 |iculty =| GameDif|
|00003720| 66 69 63 75 6c 74 79 3b | 0d 0a 7d 0d 0a 0d 0a 66 |ficulty;|..}....f|
|00003730| 75 6e 63 74 69 6f 6e 20 | 54 77 65 61 6b 53 6b 69 |unction |TweakSki|
|00003740| 6c 6c 28 42 6f 74 20 42 | 29 0d 0a 7b 0d 0a 09 69 |ll(Bot B|)..{...i|
|00003750| 66 20 28 20 21 62 54 65 | 61 6d 47 61 6d 65 20 7c |f ( !bTe|amGame ||
|00003760| 7c 20 28 4c 65 76 65 6c | 2e 4e 65 74 4d 6f 64 65 || (Level|.NetMode|
|00003770| 20 21 3d 20 4e 4d 5f 53 | 74 61 6e 64 61 6c 6f 6e | != NM_S|tandalon|
|00003780| 65 29 20 7c 7c 20 28 43 | 75 72 72 65 6e 74 47 61 |e) || (C|urrentGa|
|00003790| 6d 65 50 72 6f 66 69 6c | 65 20 3d 3d 20 4e 6f 6e |meProfil|e == Non|
|000037a0| 65 29 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 3b 0d |e) )....|return;.|
|000037b0| 0a 0d 0a 09 65 6c 73 65 | 20 69 66 20 28 20 4c 65 |....else| if ( Le|
|000037c0| 76 65 6c 2e 47 65 74 4c | 6f 63 61 6c 50 6c 61 79 |vel.GetL|ocalPlay|
|000037d0| 65 72 43 6f 6e 74 72 6f | 6c 6c 65 72 28 29 2e 50 |erContro|ller().P|
|000037e0| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|000037f0| 49 6e 66 6f 2e 54 65 61 | 6d 20 21 3d 20 42 2e 50 |Info.Tea|m != B.P|
|00003800| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00003810| 49 6e 66 6f 2e 54 65 61 | 6d 20 29 3b 0d 0a 09 09 |Info.Tea|m );....|
|00003820| 42 2e 53 6b 69 6c 6c 20 | 3d 20 46 4d 61 78 28 42 |B.Skill |= FMax(B|
|00003830| 2e 53 6b 69 6c 6c 2c 20 | 41 64 6a 75 73 74 65 64 |.Skill, |Adjusted|
|00003840| 44 69 66 66 69 63 75 6c | 74 79 20 2b 20 30 2e 32 |Difficul|ty + 0.2|
|00003850| 29 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |);..}...|.functio|
|00003860| 6e 20 69 6e 74 20 47 65 | 74 4d 69 6e 50 6c 61 79 |n int Ge|tMinPlay|
|00003870| 65 72 73 28 29 0d 0a 7b | 0d 0a 20 20 20 20 69 66 |ers()..{|.. if|
|00003880| 20 28 43 75 72 72 65 6e | 74 47 61 6d 65 50 72 6f | (Curren|tGamePro|
|00003890| 66 69 6c 65 20 3d 3d 20 | 4e 6f 6e 65 29 0d 0a 20 |file == |None).. |
|000038a0| 20 20 20 20 20 20 20 72 | 65 74 75 72 6e 20 4d 69 | r|eturn Mi|
|000038b0| 6e 28 31 32 2c 28 4c 65 | 76 65 6c 2e 49 64 65 61 |n(12,(Le|vel.Idea|
|000038c0| 6c 50 6c 61 79 65 72 43 | 6f 75 6e 74 4d 61 78 20 |lPlayerC|ountMax |
|000038d0| 2b 20 4c 65 76 65 6c 2e | 49 64 65 61 6c 50 6c 61 |+ Level.|IdealPla|
|000038e0| 79 65 72 43 6f 75 6e 74 | 4d 69 6e 29 2f 32 29 3b |yerCount|Min)/2);|
|000038f0| 0d 0a 0d 0a 20 20 20 20 | 72 65 74 75 72 6e 20 4c |.... |return L|
|00003900| 65 76 65 6c 2e 53 69 6e | 67 6c 65 50 6c 61 79 65 |evel.Sin|glePlaye|
|00003910| 72 54 65 61 6d 53 69 7a | 65 2a 32 3b 0d 0a 7d 0d |rTeamSiz|e*2;..}.|
|00003920| 0a 0d 0a 2f 2a 20 41 63 | 63 65 70 74 49 6e 76 65 |.../* Ac|ceptInve|
|00003930| 6e 74 6f 72 79 28 29 0d | 0a 45 78 61 6d 69 6e 65 |ntory().|.Examine|
|00003940| 20 74 68 65 20 70 61 73 | 73 65 64 20 70 6c 61 79 | the pas|sed play|
|00003950| 65 72 27 73 20 69 6e 76 | 65 6e 74 6f 72 79 2c 20 |er's inv|entory, |
|00003960| 61 6e 64 20 61 63 63 65 | 70 74 20 6f 72 20 64 69 |and acce|pt or di|
|00003970| 73 63 61 72 64 20 65 61 | 63 68 20 69 74 65 6d 0d |scard ea|ch item.|
|00003980| 0a 2a 20 41 63 63 65 70 | 74 49 6e 76 65 6e 74 6f |.* Accep|tInvento|
|00003990| 72 79 20 6e 65 65 64 73 | 20 74 6f 20 67 72 61 63 |ry needs| to grac|
|000039a0| 65 66 75 6c 6c 79 20 68 | 61 6e 64 6c 65 20 74 68 |efully h|andle th|
|000039b0| 65 20 63 61 73 65 20 6f | 66 20 73 6f 6d 65 20 69 |e case o|f some i|
|000039c0| 6e 76 65 6e 74 6f 72 79 | 0d 0a 62 65 69 6e 67 20 |nventory|..being |
|000039d0| 61 63 63 65 70 74 65 64 | 20 62 75 74 20 6f 74 68 |accepted| but oth|
|000039e0| 65 72 20 69 6e 76 65 6e | 74 6f 72 79 20 6e 6f 74 |er inven|tory not|
|000039f0| 20 62 65 69 6e 67 20 61 | 63 63 65 70 74 65 64 20 | being a|ccepted |
|00003a00| 28 73 75 63 68 20 61 73 | 20 74 68 65 20 64 65 66 |(such as| the def|
|00003a10| 61 75 6c 74 0d 0a 77 65 | 61 70 6f 6e 29 2e 20 20 |ault..we|apon). |
|00003a20| 54 68 65 72 65 20 61 72 | 65 20 73 65 76 65 72 61 |There ar|e severa|
|00003a30| 6c 20 74 68 69 6e 67 73 | 20 74 68 61 74 20 63 61 |l things| that ca|
|00003a40| 6e 20 67 6f 20 77 72 6f | 6e 67 3a 20 41 20 77 65 |n go wro|ng: A we|
|00003a50| 61 70 6f 6e 27 73 0d 0a | 41 6d 6d 6f 54 79 70 65 |apon's..|AmmoType|
|00003a60| 20 6e 6f 74 20 62 65 69 | 6e 67 20 61 63 63 65 70 | not bei|ng accep|
|00003a70| 74 65 64 20 62 75 74 20 | 74 68 65 20 77 65 61 70 |ted but |the weap|
|00003a80| 6f 6e 20 62 65 69 6e 67 | 20 61 63 63 65 70 74 65 |on being| accepte|
|00003a90| 64 20 2d 2d 20 74 68 65 | 20 77 65 61 70 6f 6e 0d |d -- the| weapon.|
|00003aa0| 0a 73 68 6f 75 6c 64 20 | 62 65 20 6b 69 6c 6c 65 |.should |be kille|
|00003ab0| 64 20 6f 66 66 2e 20 4f | 72 20 74 68 65 20 70 6c |d off. O|r the pl|
|00003ac0| 61 79 65 72 27 73 20 73 | 65 6c 65 63 74 65 64 20 |ayer's s|elected |
|00003ad0| 69 6e 76 65 6e 74 6f 72 | 79 20 69 74 65 6d 2c 20 |inventor|y item, |
|00003ae0| 61 63 74 69 76 65 0d 0a | 77 65 61 70 6f 6e 2c 20 |active..|weapon, |
|00003af0| 65 74 63 2e 20 6e 6f 74 | 20 62 65 69 6e 67 20 61 |etc. not| being a|
|00003b00| 63 63 65 70 74 65 64 2c | 20 6c 65 61 76 69 6e 67 |ccepted,| leaving|
|00003b10| 20 74 68 65 20 70 6c 61 | 79 65 72 20 77 65 61 70 | the pla|yer weap|
|00003b20| 6f 6e 6c 65 73 73 20 6f | 72 20 6c 65 61 76 69 6e |onless o|r leavin|
|00003b30| 67 0d 0a 74 68 65 20 48 | 55 44 20 69 6e 76 65 6e |g..the H|UD inven|
|00003b40| 74 6f 72 79 20 72 65 6e | 64 65 72 69 6e 67 20 6d |tory ren|dering m|
|00003b50| 65 73 73 65 64 20 75 70 | 20 28 41 63 63 65 70 74 |essed up| (Accept|
|00003b60| 49 6e 76 65 6e 74 6f 72 | 79 20 73 68 6f 75 6c 64 |Inventor|y should|
|00003b70| 20 70 69 63 6b 20 61 6e | 6f 74 68 65 72 0d 0a 61 | pick an|other..a|
|00003b80| 70 70 6c 69 63 61 62 6c | 65 20 77 65 61 70 6f 6e |pplicabl|e weapon|
|00003b90| 2f 69 74 65 6d 20 61 73 | 20 63 75 72 72 65 6e 74 |/item as| current|
|00003ba0| 29 2e 0d 0a 2a 2f 0d 0a | 66 75 6e 63 74 69 6f 6e |)...*/..|function|
|00003bb0| 20 41 63 63 65 70 74 49 | 6e 76 65 6e 74 6f 72 79 | AcceptI|nventory|
|00003bc0| 28 70 61 77 6e 20 50 6c | 61 79 65 72 50 61 77 6e |(pawn Pl|ayerPawn|
|00003bd0| 29 0d 0a 7b 0d 0a 20 20 | 20 20 77 68 69 6c 65 20 |)..{.. | while |
|00003be0| 28 20 50 6c 61 79 65 72 | 50 61 77 6e 2e 49 6e 76 |( Player|Pawn.Inv|
|00003bf0| 65 6e 74 6f 72 79 20 21 | 3d 20 4e 6f 6e 65 20 29 |entory !|= None )|
|00003c00| 0d 0a 20 20 20 20 20 20 | 20 20 50 6c 61 79 65 72 |.. | Player|
|00003c10| 50 61 77 6e 2e 49 6e 76 | 65 6e 74 6f 72 79 2e 44 |Pawn.Inv|entory.D|
|00003c20| 65 73 74 72 6f 79 28 29 | 3b 0d 0a 0d 0a 20 20 20 |estroy()|;.... |
|00003c30| 20 50 6c 61 79 65 72 50 | 61 77 6e 2e 57 65 61 70 | PlayerP|awn.Weap|
|00003c40| 6f 6e 20 3d 20 4e 6f 6e | 65 3b 0d 0a 20 20 20 20 |on = Non|e;.. |
|00003c50| 50 6c 61 79 65 72 50 61 | 77 6e 2e 53 65 6c 65 63 |PlayerPa|wn.Selec|
|00003c60| 74 65 64 49 74 65 6d 20 | 3d 20 4e 6f 6e 65 3b 0d |tedItem |= None;.|
|00003c70| 0a 20 20 20 20 41 64 64 | 44 65 66 61 75 6c 74 49 |. Add|DefaultI|
|00003c80| 6e 76 65 6e 74 6f 72 79 | 28 20 50 6c 61 79 65 72 |nventory|( Player|
|00003c90| 50 61 77 6e 20 29 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |Pawn );.|.}....fu|
|00003ca0| 6e 63 74 69 6f 6e 20 62 | 6f 6f 6c 20 43 68 65 63 |nction b|ool Chec|
|00003cb0| 6b 45 6e 64 47 61 6d 65 | 28 50 6c 61 79 65 72 52 |kEndGame|(PlayerR|
|00003cc0| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 20 57 |eplicati|onInfo W|
|00003cd0| 69 6e 6e 65 72 2c 20 73 | 74 72 69 6e 67 20 52 65 |inner, s|tring Re|
|00003ce0| 61 73 6f 6e 29 0d 0a 7b | 0d 0a 20 20 20 20 6c 6f |ason)..{|.. lo|
|00003cf0| 63 61 6c 20 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 50 |cal Cont|roller P|
|00003d00| 2c 20 4e 65 78 74 43 6f | 6e 74 72 6f 6c 6c 65 72 |, NextCo|ntroller|
|00003d10| 3b 0d 0a 20 20 20 20 6c | 6f 63 61 6c 20 50 6c 61 |;.. l|ocal Pla|
|00003d20| 79 65 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 50 6c |yerContr|oller Pl|
|00003d30| 61 79 65 72 3b 0d 0a 20 | 20 20 20 6c 6f 63 61 6c |ayer;.. | local|
|00003d40| 20 62 6f 6f 6c 20 62 4c | 61 73 74 4d 61 6e 3b 0d | bool bL|astMan;.|
|00003d50| 0a 0d 0a 09 69 66 20 28 | 20 62 4f 76 65 72 54 69 |....if (| bOverTi|
|00003d60| 6d 65 20 29 0d 0a 09 7b | 0d 0a 09 09 69 66 20 28 |me )...{|....if (|
|00003d70| 20 4e 75 6d 62 6f 74 73 | 20 2b 20 4e 75 6d 50 6c | Numbots| + NumPl|
|00003d80| 61 79 65 72 73 20 3d 3d | 20 30 20 29 0d 0a 09 09 |ayers ==| 0 )....|
|00003d90| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 09 |.return |true;...|
|00003da0| 09 62 4c 61 73 74 4d 61 | 6e 20 3d 20 74 72 75 65 |.bLastMa|n = true|
|00003db0| 3b 0d 0a 09 09 66 6f 72 | 20 28 20 50 3d 4c 65 76 |;....for| ( P=Lev|
|00003dc0| 65 6c 2e 43 6f 6e 74 72 | 6f 6c 6c 65 72 4c 69 73 |el.Contr|ollerLis|
|00003dd0| 74 3b 20 50 21 3d 4e 6f | 6e 65 3b 20 50 3d 50 2e |t; P!=No|ne; P=P.|
|00003de0| 6e 65 78 74 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 29 |nextCont|roller )|
|00003df0| 0d 0a 09 09 09 69 66 20 | 28 20 28 50 2e 50 6c 61 |.....if |( (P.Pla|
|00003e00| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00003e10| 66 6f 20 21 3d 20 4e 6f | 6e 65 29 20 26 26 20 21 |fo != No|ne) && !|
|00003e20| 50 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |P.Player|Replicat|
|00003e30| 69 6f 6e 49 6e 66 6f 2e | 62 4f 75 74 4f 66 4c 69 |ionInfo.|bOutOfLi|
|00003e40| 76 65 73 20 29 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 |ves )...|..{.....|
|00003e50| 09 62 4c 61 73 74 4d 61 | 6e 20 3d 20 66 61 6c 73 |.bLastMa|n = fals|
|00003e60| 65 3b 0d 0a 09 09 09 09 | 62 72 65 61 6b 3b 0d 0a |e;......|break;..|
|00003e70| 09 09 09 7d 0d 0a 09 09 | 69 66 20 28 20 62 4c 61 |...}....|if ( bLa|
|00003e80| 73 74 4d 61 6e 20 29 0d | 0a 09 09 09 72 65 74 75 |stMan ).|....retu|
|00003e90| 72 6e 20 74 72 75 65 3b | 0d 0a 09 7d 0d 0a 0d 0a |rn true;|...}....|
|00003ea0| 20 20 20 20 62 4c 61 73 | 74 4d 61 6e 20 3d 20 28 | bLas|tMan = (|
|00003eb0| 20 52 65 61 73 6f 6e 20 | 7e 3d 20 22 4c 61 73 74 | Reason |~= "Last|
|00003ec0| 4d 61 6e 22 20 29 3b 0d | 0a 0d 0a 20 20 20 20 69 |Man" );.|... i|
|00003ed0| 66 20 28 20 21 62 4c 61 | 73 74 4d 61 6e 20 26 26 |f ( !bLa|stMan &&|
|00003ee0| 20 28 47 61 6d 65 52 75 | 6c 65 73 4d 6f 64 69 66 | (GameRu|lesModif|
|00003ef0| 69 65 72 73 20 21 3d 20 | 4e 6f 6e 65 29 20 26 26 |iers != |None) &&|
|00003f00| 20 21 47 61 6d 65 52 75 | 6c 65 73 4d 6f 64 69 66 | !GameRu|lesModif|
|00003f10| 69 65 72 73 2e 43 68 65 | 63 6b 45 6e 64 47 61 6d |iers.Che|ckEndGam|
|00003f20| 65 28 57 69 6e 6e 65 72 | 2c 20 52 65 61 73 6f 6e |e(Winner|, Reason|
|00003f30| 29 20 29 0d 0a 20 20 20 | 20 20 20 20 20 72 65 74 |) ).. | ret|
|00003f40| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 0d 0a 09 69 |urn fals|e;.....i|
|00003f50| 66 20 28 20 57 69 6e 6e | 65 72 20 3d 3d 20 4e 6f |f ( Winn|er == No|
|00003f60| 6e 65 20 29 0d 0a 09 7b | 0d 0a 09 09 2f 2f 20 66 |ne )...{|....// f|
|00003f70| 69 6e 64 20 77 69 6e 6e | 65 72 0d 0a 09 09 66 6f |ind winn|er....fo|
|00003f80| 72 20 28 20 50 3d 4c 65 | 76 65 6c 2e 43 6f 6e 74 |r ( P=Le|vel.Cont|
|00003f90| 72 6f 6c 6c 65 72 4c 69 | 73 74 3b 20 50 21 3d 4e |rollerLi|st; P!=N|
|00003fa0| 6f 6e 65 3b 20 50 3d 50 | 2e 6e 65 78 74 43 6f 6e |one; P=P|.nextCon|
|00003fb0| 74 72 6f 6c 6c 65 72 20 | 29 0d 0a 09 09 09 69 66 |troller |).....if|
|00003fc0| 20 28 20 50 2e 62 49 73 | 50 6c 61 79 65 72 20 26 | ( P.bIs|Player &|
|00003fd0| 26 20 21 50 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |& !P.Pla|yerRepli|
|00003fe0| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 62 4f 75 74 4f |cationIn|fo.bOutO|
|00003ff0| 66 4c 69 76 65 73 0d 0a | 09 09 09 09 26 26 20 28 |fLives..|....&& (|
|00004000| 28 57 69 6e 6e 65 72 20 | 3d 3d 20 4e 6f 6e 65 29 |(Winner |== None)|
|00004010| 20 7c 7c 20 28 50 2e 50 | 6c 61 79 65 72 52 65 70 | || (P.P|layerRep|
|00004020| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 53 63 6f |lication|Info.Sco|
|00004030| 72 65 20 3e 3d 20 57 69 | 6e 6e 65 72 2e 53 63 6f |re >= Wi|nner.Sco|
|00004040| 72 65 29 29 20 29 0d 0a | 09 09 09 7b 0d 0a 09 09 |re)) )..|...{....|
|00004050| 09 09 57 69 6e 6e 65 72 | 20 3d 20 50 2e 50 6c 61 |..Winner| = P.Pla|
|00004060| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00004070| 66 6f 3b 0d 0a 09 09 09 | 7d 0d 0a 09 7d 0d 0a 0d |fo;.....|}...}...|
|00004080| 0a 20 20 20 20 2f 2f 20 | 63 68 65 63 6b 20 66 6f |. // |check fo|
|00004090| 72 20 74 69 65 0d 0a 20 | 20 20 20 69 66 20 28 20 |r tie.. | if ( |
|000040a0| 21 62 4c 61 73 74 4d 61 | 6e 20 29 0d 0a 20 20 20 |!bLastMa|n ).. |
|000040b0| 20 7b 0d 0a 09 09 66 6f | 72 20 28 20 50 3d 4c 65 | {....fo|r ( P=Le|
|000040c0| 76 65 6c 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 4c 69 |vel.Cont|rollerLi|
|000040d0| 73 74 3b 20 50 21 3d 4e | 6f 6e 65 3b 20 50 3d 50 |st; P!=N|one; P=P|
|000040e0| 2e 6e 65 78 74 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |.nextCon|troller |
|000040f0| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 69 66 20 28 20 |)....{..|...if ( |
|00004100| 50 2e 62 49 73 50 6c 61 | 79 65 72 20 26 26 0d 0a |P.bIsPla|yer &&..|
|00004110| 09 09 09 09 28 57 69 6e | 6e 65 72 20 21 3d 20 50 |....(Win|ner != P|
|00004120| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00004130| 6f 6e 49 6e 66 6f 29 20 | 26 26 0d 0a 09 09 09 09 |onInfo) |&&......|
|00004140| 28 50 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |(P.Playe|rReplica|
|00004150| 74 69 6f 6e 49 6e 66 6f | 2e 53 63 6f 72 65 20 3d |tionInfo|.Score =|
|00004160| 3d 20 57 69 6e 6e 65 72 | 2e 53 63 6f 72 65 29 0d |= Winner|.Score).|
|00004170| 0a 09 09 09 09 26 26 20 | 21 50 2e 50 6c 61 79 65 |.....&& |!P.Playe|
|00004180| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00004190| 2e 62 4f 75 74 4f 66 4c | 69 76 65 73 20 29 0d 0a |.bOutOfL|ives )..|
|000041a0| 09 09 09 7b 0d 0a 09 09 | 09 09 69 66 20 28 20 21 |...{....|..if ( !|
|000041b0| 62 4f 76 65 72 54 69 6d | 65 42 72 6f 61 64 63 61 |bOverTim|eBroadca|
|000041c0| 73 74 20 29 0d 0a 09 09 | 09 09 7b 0d 0a 09 09 09 |st )....|..{.....|
|000041d0| 09 09 53 74 61 72 74 75 | 70 53 74 61 67 65 20 3d |..Startu|pStage =|
|000041e0| 20 37 3b 0d 0a 09 09 09 | 09 09 50 6c 61 79 53 74 | 7;.....|..PlaySt|
|000041f0| 61 72 74 75 70 4d 65 73 | 73 61 67 65 28 29 3b 0d |artupMes|sage();.|
|00004200| 0a 09 09 09 09 09 62 4f | 76 65 72 54 69 6d 65 42 |......bO|verTimeB|
|00004210| 72 6f 61 64 63 61 73 74 | 20 3d 20 74 72 75 65 3b |roadcast| = true;|
|00004220| 0d 0a 09 09 09 09 7d 0d | 0a 09 09 09 09 72 65 74 |......}.|.....ret|
|00004230| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 09 09 09 7d |urn fals|e;.....}|
|00004240| 0d 0a 09 09 7d 0d 0a 09 | 7d 0d 0a 0d 0a 20 20 20 |....}...|}.... |
|00004250| 20 45 6e 64 54 69 6d 65 | 20 3d 20 4c 65 76 65 6c | EndTime| = Level|
|00004260| 2e 54 69 6d 65 53 65 63 | 6f 6e 64 73 20 2b 20 45 |.TimeSec|onds + E|
|00004270| 6e 64 54 69 6d 65 44 65 | 6c 61 79 3b 0d 0a 20 20 |ndTimeDe|lay;.. |
|00004280| 20 20 47 61 6d 65 52 65 | 70 6c 69 63 61 74 69 6f | GameRe|plicatio|
|00004290| 6e 49 6e 66 6f 2e 57 69 | 6e 6e 65 72 20 3d 20 57 |nInfo.Wi|nner = W|
|000042a0| 69 6e 6e 65 72 3b 0d 0a | 20 20 20 20 69 66 20 28 |inner;..| if (|
|000042b0| 20 43 75 72 72 65 6e 74 | 47 61 6d 65 50 72 6f 66 | Current|GameProf|
|000042c0| 69 6c 65 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |ile != N|one )...|
|000042d0| 09 43 75 72 72 65 6e 74 | 47 61 6d 65 50 72 6f 66 |.Current|GameProf|
|000042e0| 69 6c 65 2e 62 57 6f 6e | 4d 61 74 63 68 20 3d 20 |ile.bWon|Match = |
|000042f0| 28 50 6c 61 79 65 72 43 | 6f 6e 74 72 6f 6c 6c 65 |(PlayerC|ontrolle|
|00004300| 72 28 57 69 6e 6e 65 72 | 2e 4f 77 6e 65 72 29 20 |r(Winner|.Owner) |
|00004310| 21 3d 20 4e 6f 6e 65 29 | 3b 0d 0a 0d 0a 20 20 20 |!= None)|;.... |
|00004320| 20 45 6e 64 47 61 6d 65 | 46 6f 63 75 73 20 3d 20 | EndGame|Focus = |
|00004330| 43 6f 6e 74 72 6f 6c 6c | 65 72 28 57 69 6e 6e 65 |Controll|er(Winne|
|00004340| 72 2e 4f 77 6e 65 72 29 | 2e 50 61 77 6e 3b 0d 0a |r.Owner)|.Pawn;..|
|00004350| 20 20 20 20 69 66 20 28 | 20 45 6e 64 47 61 6d 65 | if (| EndGame|
|00004360| 46 6f 63 75 73 20 21 3d | 20 4e 6f 6e 65 20 29 0d |Focus !=| None ).|
|00004370| 0a 09 09 45 6e 64 47 61 | 6d 65 46 6f 63 75 73 2e |...EndGa|meFocus.|
|00004380| 62 41 6c 77 61 79 73 52 | 65 6c 65 76 61 6e 74 20 |bAlwaysR|elevant |
|00004390| 3d 20 74 72 75 65 3b 0d | 0a 20 20 20 20 66 6f 72 |= true;.|. for|
|000043a0| 20 28 20 50 3d 4c 65 76 | 65 6c 2e 43 6f 6e 74 72 | ( P=Lev|el.Contr|
|000043b0| 6f 6c 6c 65 72 4c 69 73 | 74 3b 20 50 21 3d 4e 6f |ollerLis|t; P!=No|
|000043c0| 6e 65 3b 20 50 3d 4e 65 | 78 74 43 6f 6e 74 72 6f |ne; P=Ne|xtContro|
|000043d0| 6c 6c 65 72 20 29 0d 0a | 20 20 20 20 7b 0d 0a 20 |ller )..| {.. |
|000043e0| 20 20 20 20 20 20 20 50 | 6c 61 79 65 72 20 3d 20 | P|layer = |
|000043f0| 50 6c 61 79 65 72 43 6f | 6e 74 72 6f 6c 6c 65 72 |PlayerCo|ntroller|
|00004400| 28 50 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 69 66 |(P);.. | if|
|00004410| 20 28 20 50 6c 61 79 65 | 72 20 21 3d 20 4e 6f 6e | ( Playe|r != Non|
|00004420| 65 20 29 0d 0a 20 20 20 | 20 20 20 20 20 7b 0d 0a |e ).. | {..|
|00004430| 09 09 09 69 66 20 28 20 | 21 50 6c 61 79 65 72 2e |...if ( |!Player.|
|00004440| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00004450| 6e 49 6e 66 6f 2e 62 4f | 6e 6c 79 53 70 65 63 74 |nInfo.bO|nlySpect|
|00004460| 61 74 6f 72 20 29 0d 0a | 09 20 20 20 20 20 20 20 |ator )..|. |
|00004470| 20 20 20 20 20 50 6c 61 | 79 57 69 6e 4d 65 73 73 | Pla|yWinMess|
|00004480| 61 67 65 28 50 6c 61 79 | 65 72 2c 20 28 50 6c 61 |age(Play|er, (Pla|
|00004490| 79 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |yer.Play|erReplic|
|000044a0| 61 74 69 6f 6e 49 6e 66 | 6f 20 3d 3d 20 57 69 6e |ationInf|o == Win|
|000044b0| 6e 65 72 29 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |ner));..| |
|000044c0| 20 20 20 20 50 6c 61 79 | 65 72 2e 43 6c 69 65 6e | Play|er.Clien|
|000044d0| 74 53 65 74 42 65 68 69 | 6e 64 56 69 65 77 28 74 |tSetBehi|ndView(t|
|000044e0| 72 75 65 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |rue);.. | |
|000044f0| 20 20 20 69 66 20 28 20 | 45 6e 64 47 61 6d 65 46 | if ( |EndGameF|
|00004500| 6f 63 75 73 20 21 3d 20 | 4e 6f 6e 65 20 29 0d 0a |ocus != |None )..|
|00004510| 20 20 20 20 20 20 20 20 | 20 20 20 20 7b 0d 0a 09 | | {...|
|00004520| 09 09 09 50 6c 61 79 65 | 72 2e 43 6c 69 65 6e 74 |...Playe|r.Client|
|00004530| 53 65 74 56 69 65 77 54 | 61 72 67 65 74 28 45 6e |SetViewT|arget(En|
|00004540| 64 47 61 6d 65 46 6f 63 | 75 73 29 3b 0d 0a 20 20 |dGameFoc|us);.. |
|00004550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 50 6c | | Pl|
|00004560| 61 79 65 72 2e 53 65 74 | 56 69 65 77 54 61 72 67 |ayer.Set|ViewTarg|
|00004570| 65 74 28 45 6e 64 47 61 | 6d 65 46 6f 63 75 73 29 |et(EndGa|meFocus)|
|00004580| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 7d |;.. | }|
|00004590| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 50 6c |.. | Pl|
|000045a0| 61 79 65 72 2e 43 6c 69 | 65 6e 74 47 61 6d 65 45 |ayer.Cli|entGameE|
|000045b0| 6e 64 65 64 28 29 3b 0d | 0a 20 20 20 20 20 20 20 |nded();.|. |
|000045c0| 20 7d 0d 0a 20 20 20 20 | 20 20 20 20 4e 65 78 74 | }.. | Next|
|000045d0| 43 6f 6e 74 72 6f 6c 6c | 65 72 20 3d 20 50 2e 4e |Controll|er = P.N|
|000045e0| 65 78 74 43 6f 6e 74 72 | 6f 6c 6c 65 72 3b 0d 0a |extContr|oller;..|
|000045f0| 20 20 20 20 20 20 20 20 | 50 2e 47 61 6d 65 48 61 | |P.GameHa|
|00004600| 73 45 6e 64 65 64 28 29 | 3b 0d 0a 20 20 20 20 7d |sEnded()|;.. }|
|00004610| 0d 0a 20 20 20 20 72 65 | 74 75 72 6e 20 74 72 75 |.. re|turn tru|
|00004620| 65 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |e;..}...|.functio|
|00004630| 6e 20 50 6c 61 79 57 69 | 6e 4d 65 73 73 61 67 65 |n PlayWi|nMessage|
|00004640| 28 50 6c 61 79 65 72 43 | 6f 6e 74 72 6f 6c 6c 65 |(PlayerC|ontrolle|
|00004650| 72 20 50 6c 61 79 65 72 | 2c 20 62 6f 6f 6c 20 62 |r Player|, bool b|
|00004660| 57 69 6e 6e 65 72 29 0d | 0a 7b 0d 0a 09 69 66 20 |Winner).|.{...if |
|00004670| 28 20 55 6e 72 65 61 6c | 50 6c 61 79 65 72 28 50 |( Unreal|Player(P|
|00004680| 6c 61 79 65 72 29 20 21 | 3d 20 4e 6f 6e 65 20 29 |layer) !|= None )|
|00004690| 0d 0a 09 09 55 6e 72 65 | 61 6c 50 6c 61 79 65 72 |....Unre|alPlayer|
|000046a0| 28 50 6c 61 79 65 72 29 | 2e 50 6c 61 79 57 69 6e |(Player)|.PlayWin|
|000046b0| 4d 65 73 73 61 67 65 28 | 62 57 69 6e 6e 65 72 29 |Message(|bWinner)|
|000046c0| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|000046d0| 20 62 6f 6f 6c 20 41 74 | 43 61 70 61 63 69 74 79 | bool At|Capacity|
|000046e0| 28 62 6f 6f 6c 20 62 53 | 70 65 63 74 61 74 6f 72 |(bool bS|pectator|
|000046f0| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 43 6f 6e |)..{...l|ocal Con|
|00004700| 74 72 6f 6c 6c 65 72 20 | 43 3b 0d 0a 09 6c 6f 63 |troller |C;...loc|
|00004710| 61 6c 20 62 6f 6f 6c 20 | 62 46 6f 72 63 65 64 53 |al bool |bForcedS|
|00004720| 70 65 63 74 61 74 6f 72 | 3b 0d 0a 0d 0a 20 20 20 |pectator|;.... |
|00004730| 20 69 66 20 28 20 4c 65 | 76 65 6c 2e 4e 65 74 4d | if ( Le|vel.NetM|
|00004740| 6f 64 65 20 3d 3d 20 4e | 4d 5f 53 74 61 6e 64 61 |ode == N|M_Standa|
|00004750| 6c 6f 6e 65 20 29 0d 0a | 20 20 20 20 20 20 20 20 |lone )..| |
|00004760| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 0d |return f|alse;...|
|00004770| 0a 09 69 66 20 28 20 62 | 50 6c 61 79 65 72 73 56 |..if ( b|PlayersV|
|00004780| 73 42 6f 74 73 20 29 0d | 0a 09 09 4d 61 78 50 6c |sBots ).|...MaxPl|
|00004790| 61 79 65 72 73 20 3d 20 | 4d 69 6e 28 4d 61 78 50 |ayers = |Min(MaxP|
|000047a0| 6c 61 79 65 72 73 2c 31 | 36 29 3b 0d 0a 0d 0a 20 |layers,1|6);.... |
|000047b0| 20 20 20 69 66 20 28 20 | 4d 61 78 4c 69 76 65 73 | if ( |MaxLives|
|000047c0| 20 3c 3d 20 30 20 29 0d | 0a 09 09 72 65 74 75 72 | <= 0 ).|...retur|
|000047d0| 6e 20 53 75 70 65 72 2e | 41 74 43 61 70 61 63 69 |n Super.|AtCapaci|
|000047e0| 74 79 28 62 53 70 65 63 | 74 61 74 6f 72 29 3b 0d |ty(bSpec|tator);.|
|000047f0| 0a 0d 0a 09 66 6f 72 20 | 28 20 43 3d 4c 65 76 65 |....for |( C=Leve|
|00004800| 6c 2e 43 6f 6e 74 72 6f | 6c 6c 65 72 4c 69 73 74 |l.Contro|llerList|
|00004810| 3b 20 43 21 3d 4e 6f 6e | 65 3b 20 43 3d 43 2e 4e |; C!=Non|e; C=C.N|
|00004820| 65 78 74 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 29 0d |extContr|oller ).|
|00004830| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 20 28 43 2e 50 |..{....i|f ( (C.P|
|00004840| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00004850| 49 6e 66 6f 20 21 3d 20 | 4e 6f 6e 65 29 20 26 26 |Info != |None) &&|
|00004860| 20 28 43 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 | (C.Play|erReplic|
|00004870| 61 74 69 6f 6e 49 6e 66 | 6f 2e 4e 75 6d 4c 69 76 |ationInf|o.NumLiv|
|00004880| 65 73 20 3e 20 4c 61 74 | 65 45 6e 74 72 79 4c 69 |es > Lat|eEntryLi|
|00004890| 76 65 73 29 20 29 0d 0a | 09 09 7b 0d 0a 09 09 09 |ves) )..|..{.....|
|000048a0| 62 46 6f 72 63 65 64 53 | 70 65 63 74 61 74 6f 72 |bForcedS|pectator|
|000048b0| 20 3d 20 74 72 75 65 3b | 0d 0a 09 09 09 62 72 65 | = true;|.....bre|
|000048c0| 61 6b 3b 0d 0a 09 09 7d | 0d 0a 09 7d 0d 0a 09 69 |ak;....}|...}...i|
|000048d0| 66 20 28 20 21 62 46 6f | 72 63 65 64 53 70 65 63 |f ( !bFo|rcedSpec|
|000048e0| 74 61 74 6f 72 20 29 0d | 0a 09 09 72 65 74 75 72 |tator ).|...retur|
|000048f0| 6e 20 53 75 70 65 72 2e | 41 74 43 61 70 61 63 69 |n Super.|AtCapaci|
|00004900| 74 79 28 62 53 70 65 63 | 74 61 74 6f 72 29 3b 0d |ty(bSpec|tator);.|
|00004910| 0a 0d 0a 09 72 65 74 75 | 72 6e 20 28 20 4e 75 6d |....retu|rn ( Num|
|00004920| 50 6c 61 79 65 72 73 20 | 2b 20 4e 75 6d 53 70 65 |Players |+ NumSpe|
|00004930| 63 74 61 74 6f 72 73 20 | 3e 3d 20 4d 61 78 50 6c |ctators |>= MaxPl|
|00004940| 61 79 65 72 73 20 2b 20 | 4d 61 78 53 70 65 63 74 |ayers + |MaxSpect|
|00004950| 61 74 6f 72 73 20 29 3b | 0d 0a 7d 0d 0a 0d 0a 65 |ators );|..}....e|
|00004960| 76 65 6e 74 20 50 6c 61 | 79 65 72 43 6f 6e 74 72 |vent Pla|yerContr|
|00004970| 6f 6c 6c 65 72 20 4c 6f | 67 69 6e 0d 0a 28 0d 0a |oller Lo|gin..(..|
|00004980| 20 20 20 20 73 74 72 69 | 6e 67 20 50 6f 72 74 61 | stri|ng Porta|
|00004990| 6c 2c 0d 0a 20 20 20 20 | 73 74 72 69 6e 67 20 4f |l,.. |string O|
|000049a0| 70 74 69 6f 6e 73 2c 0d | 0a 20 20 20 20 6f 75 74 |ptions,.|. out|
|000049b0| 20 73 74 72 69 6e 67 20 | 45 72 72 6f 72 0d 0a 29 | string |Error..)|
|000049c0| 0d 0a 7b 0d 0a 20 20 20 | 20 6c 6f 63 61 6c 20 50 |..{.. | local P|
|000049d0| 6c 61 79 65 72 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |layerCon|troller |
|000049e0| 4e 65 77 50 6c 61 79 65 | 72 3b 0d 0a 09 6c 6f 63 |NewPlaye|r;...loc|
|000049f0| 61 6c 20 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 43 3b |al Contr|oller C;|
|00004a00| 0d 0a 0d 0a 09 69 66 20 | 28 20 4d 61 78 4c 69 76 |.....if |( MaxLiv|
|00004a10| 65 73 20 3e 20 30 20 29 | 0d 0a 09 7b 0d 0a 09 09 |es > 0 )|...{....|
|00004a20| 2f 2f 20 63 68 65 63 6b | 20 74 68 61 74 20 67 61 |// check| that ga|
|00004a30| 6d 65 20 69 73 6e 27 74 | 20 74 6f 6f 20 66 61 72 |me isn't| too far|
|00004a40| 20 61 6c 6f 6e 67 0d 0a | 09 09 66 6f 72 20 28 20 | along..|..for ( |
|00004a50| 43 3d 4c 65 76 65 6c 2e | 43 6f 6e 74 72 6f 6c 6c |C=Level.|Controll|
|00004a60| 65 72 4c 69 73 74 3b 20 | 43 21 3d 4e 6f 6e 65 3b |erList; |C!=None;|
|00004a70| 20 43 3d 43 2e 4e 65 78 | 74 43 6f 6e 74 72 6f 6c | C=C.Nex|tControl|
|00004a80| 6c 65 72 20 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 69 |ler )...|.{.....i|
|00004a90| 66 20 28 20 28 43 2e 50 | 6c 61 79 65 72 52 65 70 |f ( (C.P|layerRep|
|00004aa0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 20 21 3d 20 |lication|Info != |
|00004ab0| 4e 6f 6e 65 29 20 26 26 | 20 28 43 2e 50 6c 61 79 |None) &&| (C.Play|
|00004ac0| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00004ad0| 6f 2e 4e 75 6d 4c 69 76 | 65 73 20 3e 20 4c 61 74 |o.NumLiv|es > Lat|
|00004ae0| 65 45 6e 74 72 79 4c 69 | 76 65 73 29 20 29 0d 0a |eEntryLi|ves) )..|
|00004af0| 09 09 09 7b 0d 0a 09 09 | 09 09 4f 70 74 69 6f 6e |...{....|..Option|
|00004b00| 73 20 3d 20 22 3f 53 70 | 65 63 74 61 74 6f 72 4f |s = "?Sp|ectatorO|
|00004b10| 6e 6c 79 3d 31 22 24 4f | 70 74 69 6f 6e 73 3b 0d |nly=1"$O|ptions;.|
|00004b20| 0a 09 09 09 09 62 72 65 | 61 6b 3b 0d 0a 09 09 09 |.....bre|ak;.....|
|00004b30| 7d 0d 0a 09 09 7d 0d 0a | 09 7d 0d 0a 0d 0a 20 20 |}....}..|.}.... |
|00004b40| 20 20 4e 65 77 50 6c 61 | 79 65 72 20 3d 20 53 75 | NewPla|yer = Su|
|00004b50| 70 65 72 2e 4c 6f 67 69 | 6e 28 50 6f 72 74 61 6c |per.Logi|n(Portal|
|00004b60| 2c 4f 70 74 69 6f 6e 73 | 2c 45 72 72 6f 72 29 3b |,Options|,Error);|
|00004b70| 0d 0a 20 20 20 20 69 66 | 20 28 20 62 4d 75 73 74 |.. if| ( bMust|
|00004b80| 4a 6f 69 6e 42 65 66 6f | 72 65 53 74 61 72 74 20 |JoinBefo|reStart |
|00004b90| 26 26 20 47 61 6d 65 52 | 65 70 6c 69 63 61 74 69 |&& GameR|eplicati|
|00004ba0| 6f 6e 49 6e 66 6f 2e 62 | 4d 61 74 63 68 48 61 73 |onInfo.b|MatchHas|
|00004bb0| 42 65 67 75 6e 20 29 0d | 0a 20 20 20 20 20 20 20 |Begun ).|. |
|00004bc0| 20 55 6e 72 65 61 6c 50 | 6c 61 79 65 72 28 4e 65 | UnrealP|layer(Ne|
|00004bd0| 77 50 6c 61 79 65 72 29 | 2e 62 4c 61 74 65 63 6f |wPlayer)|.bLateco|
|00004be0| 6d 65 72 20 3d 20 74 72 | 75 65 3b 0d 0a 0d 0a 09 |mer = tr|ue;.....|
|00004bf0| 69 66 20 28 20 4c 65 76 | 65 6c 2e 4e 65 74 4d 6f |if ( Lev|el.NetMo|
|00004c00| 64 65 20 3d 3d 20 4e 4d | 5f 53 74 61 6e 64 61 6c |de == NM|_Standal|
|00004c10| 6f 6e 65 20 29 0d 0a 09 | 7b 0d 0a 09 09 69 66 28 |one )...|{....if(|
|00004c20| 20 4e 65 77 50 6c 61 79 | 65 72 2e 50 6c 61 79 65 | NewPlay|er.Playe|
|00004c30| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00004c40| 2e 62 4f 6e 6c 79 53 70 | 65 63 74 61 74 6f 72 20 |.bOnlySp|ectator |
|00004c50| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 2f 2f 20 43 6f |)....{..|...// Co|
|00004c60| 6d 70 65 6e 73 61 74 65 | 20 66 6f 72 20 74 68 65 |mpensate| for the|
|00004c70| 20 73 70 61 63 65 20 6c | 65 66 74 20 66 6f 72 20 | space l|eft for |
|00004c80| 74 68 65 20 70 6c 61 79 | 65 72 0d 0a 09 09 09 69 |the play|er.....i|
|00004c90| 66 20 28 20 21 62 43 75 | 73 74 6f 6d 42 6f 74 73 |f ( !bCu|stomBots|
|00004ca0| 20 26 26 20 28 62 41 75 | 74 6f 4e 75 6d 42 6f 74 | && (bAu|toNumBot|
|00004cb0| 73 20 7c 7c 20 28 62 54 | 65 61 6d 47 61 6d 65 20 |s || (bT|eamGame |
|00004cc0| 26 26 20 28 49 6e 69 74 | 69 61 6c 42 6f 74 73 25 |&& (Init|ialBots%|
|00004cd0| 32 20 3d 3d 20 31 29 29 | 29 20 29 0d 0a 09 09 09 |2 == 1))|) ).....|
|00004ce0| 09 49 6e 69 74 69 61 6c | 42 6f 74 73 2b 2b 3b 0d |.Initial|Bots++;.|
|00004cf0| 0a 09 09 7d 0d 0a 09 09 | 65 6c 73 65 0d 0a 09 09 |...}....|else....|
|00004d00| 09 53 74 61 6e 64 61 6c | 6f 6e 65 50 6c 61 79 65 |.Standal|onePlaye|
|00004d10| 72 20 3d 20 4e 65 77 50 | 6c 61 79 65 72 3b 0d 0a |r = NewP|layer;..|
|00004d20| 09 7d 0d 0a 0d 0a 20 20 | 20 20 72 65 74 75 72 6e |.}.... | return|
|00004d30| 20 4e 65 77 50 6c 61 79 | 65 72 3b 0d 0a 7d 0d 0a | NewPlay|er;..}..|
|00004d40| 0d 0a 65 76 65 6e 74 20 | 50 6f 73 74 4c 6f 67 69 |..event |PostLogi|
|00004d50| 6e 28 20 70 6c 61 79 65 | 72 63 6f 6e 74 72 6f 6c |n( playe|rcontrol|
|00004d60| 6c 65 72 20 4e 65 77 50 | 6c 61 79 65 72 20 29 0d |ler NewP|layer ).|
|00004d70| 0a 7b 0d 0a 09 53 75 70 | 65 72 2e 50 6f 73 74 4c |.{...Sup|er.PostL|
|00004d80| 6f 67 69 6e 28 4e 65 77 | 50 6c 61 79 65 72 29 3b |ogin(New|Player);|
|00004d90| 0d 0a 0d 0a 09 69 66 20 | 28 55 6e 72 65 61 6c 50 |.....if |(UnrealP|
|00004da0| 6c 61 79 65 72 28 4e 65 | 77 50 6c 61 79 65 72 29 |layer(Ne|wPlayer)|
|00004db0| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 09 7b 0d 0a 09 | != None|)...{...|
|00004dc0| 09 55 6e 72 65 61 6c 50 | 6c 61 79 65 72 28 4e 65 |.UnrealP|layer(Ne|
|00004dd0| 77 50 6c 61 79 65 72 29 | 2e 43 6c 69 65 6e 74 52 |wPlayer)|.ClientR|
|00004de0| 65 63 65 69 76 65 4c 6f | 67 69 6e 4d 65 6e 75 28 |eceiveLo|ginMenu(|
|00004df0| 4c 6f 67 69 6e 4d 65 6e | 75 43 6c 61 73 73 2c 20 |LoginMen|uClass, |
|00004e00| 62 41 6c 77 61 79 73 53 | 68 6f 77 4c 6f 67 69 6e |bAlwaysS|howLogin|
|00004e10| 4d 65 6e 75 29 3b 0d 0a | 09 09 55 6e 72 65 61 6c |Menu);..|..Unreal|
|00004e20| 50 6c 61 79 65 72 28 4e | 65 77 50 6c 61 79 65 72 |Player(N|ewPlayer|
|00004e30| 29 2e 50 6c 61 79 53 74 | 61 72 74 55 70 4d 65 73 |).PlaySt|artUpMes|
|00004e40| 73 61 67 65 28 53 74 61 | 72 74 75 70 53 74 61 67 |sage(Sta|rtupStag|
|00004e50| 65 29 3b 0d 0a 09 7d 0d | 0a 7d 0d 0a 0d 0a 66 75 |e);...}.|.}....fu|
|00004e60| 6e 63 74 69 6f 6e 20 43 | 68 61 6e 67 65 4c 6f 61 |nction C|hangeLoa|
|00004e70| 64 4f 75 74 28 50 6c 61 | 79 65 72 43 6f 6e 74 72 |dOut(Pla|yerContr|
|00004e80| 6f 6c 6c 65 72 20 50 2c | 20 73 74 72 69 6e 67 20 |oller P,| string |
|00004e90| 4c 6f 61 64 6f 75 74 4e | 61 6d 65 29 3b 0d 0a 0d |LoadoutN|ame);...|
|00004ea0| 0a 66 75 6e 63 74 69 6f | 6e 20 52 65 73 74 61 72 |.functio|n Restar|
|00004eb0| 74 50 6c 61 79 65 72 28 | 20 43 6f 6e 74 72 6f 6c |tPlayer(| Control|
|00004ec0| 6c 65 72 20 61 50 6c 61 | 79 65 72 20 29 0d 0a 7b |ler aPla|yer )..{|
|00004ed0| 0d 0a 20 20 20 20 69 66 | 20 28 20 62 4d 75 73 74 |.. if| ( bMust|
|00004ee0| 4a 6f 69 6e 42 65 66 6f | 72 65 53 74 61 72 74 20 |JoinBefo|reStart |
|00004ef0| 26 26 20 28 55 6e 72 65 | 61 6c 50 6c 61 79 65 72 |&& (Unre|alPlayer|
|00004f00| 28 61 50 6c 61 79 65 72 | 29 20 21 3d 20 4e 6f 6e |(aPlayer|) != Non|
|00004f10| 65 29 0d 0a 20 20 20 20 | 20 20 20 20 26 26 20 55 |e).. | && U|
|00004f20| 6e 72 65 61 6c 50 6c 61 | 79 65 72 28 61 50 6c 61 |nrealPla|yer(aPla|
|00004f30| 79 65 72 29 2e 62 4c 61 | 74 65 63 6f 6d 65 72 20 |yer).bLa|tecomer |
|00004f40| 29 0d 0a 20 20 20 20 20 | 20 20 20 72 65 74 75 72 |).. | retur|
|00004f50| 6e 3b 0d 0a 0d 0a 20 20 | 20 20 69 66 20 28 20 61 |n;.... | if ( a|
|00004f60| 50 6c 61 79 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |Player.P|layerRep|
|00004f70| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 62 4f 75 |lication|Info.bOu|
|00004f80| 74 4f 66 4c 69 76 65 73 | 20 29 0d 0a 20 20 20 20 |tOfLives| ).. |
|00004f90| 20 20 20 20 72 65 74 75 | 72 6e 3b 0d 0a 0d 0a 20 | retu|rn;.... |
|00004fa0| 20 20 20 69 66 20 28 20 | 61 50 6c 61 79 65 72 2e | if ( |aPlayer.|
|00004fb0| 49 73 41 28 27 42 6f 74 | 27 29 20 26 26 20 54 6f |IsA('Bot|') && To|
|00004fc0| 6f 4d 61 6e 79 42 6f 74 | 73 28 61 50 6c 61 79 65 |oManyBot|s(aPlaye|
|00004fd0| 72 29 20 29 0d 0a 20 20 | 20 20 7b 0d 0a 20 20 20 |r) ).. | {.. |
|00004fe0| 20 20 20 20 20 61 50 6c | 61 79 65 72 2e 44 65 73 | aPl|ayer.Des|
|00004ff0| 74 72 6f 79 28 29 3b 0d | 0a 20 20 20 20 20 20 20 |troy();.|. |
|00005000| 20 72 65 74 75 72 6e 3b | 0d 0a 20 20 20 20 7d 0d | return;|.. }.|
|00005010| 0a 20 20 20 20 53 75 70 | 65 72 2e 52 65 73 74 61 |. Sup|er.Resta|
|00005020| 72 74 50 6c 61 79 65 72 | 28 61 50 6c 61 79 65 72 |rtPlayer|(aPlayer|
|00005030| 29 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |);..}...|.functio|
|00005040| 6e 20 62 6f 6f 6c 20 54 | 6f 6f 4d 61 6e 79 42 6f |n bool T|ooManyBo|
|00005050| 74 73 28 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 62 6f |ts(Contr|oller bo|
|00005060| 74 54 6f 52 65 6d 6f 76 | 65 29 0d 0a 7b 0d 0a 09 |tToRemov|e)..{...|
|00005070| 69 66 20 28 20 28 4c 65 | 76 65 6c 2e 4e 65 74 4d |if ( (Le|vel.NetM|
|00005080| 6f 64 65 20 21 3d 20 4e | 4d 5f 53 74 61 6e 64 61 |ode != N|M_Standa|
|00005090| 6c 6f 6e 65 29 20 26 26 | 20 62 50 6c 61 79 65 72 |lone) &&| bPlayer|
|000050a0| 73 56 73 42 6f 74 73 20 | 29 0d 0a 09 09 72 65 74 |sVsBots |)....ret|
|000050b0| 75 72 6e 20 28 20 4e 75 | 6d 42 6f 74 73 20 3e 20 |urn ( Nu|mBots > |
|000050c0| 4d 69 6e 28 31 36 2c 42 | 6f 74 52 61 74 69 6f 2a |Min(16,B|otRatio*|
|000050d0| 4e 75 6d 50 6c 61 79 65 | 72 73 29 20 29 3b 0d 0a |NumPlaye|rs) );..|
|000050e0| 09 69 66 20 28 20 62 50 | 6c 61 79 65 72 42 65 63 |.if ( bP|layerBec|
|000050f0| 61 6d 65 41 63 74 69 76 | 65 20 29 0d 0a 09 7b 0d |ameActiv|e )...{.|
|00005100| 0a 09 09 62 50 6c 61 79 | 65 72 42 65 63 61 6d 65 |...bPlay|erBecame|
|00005110| 41 63 74 69 76 65 20 3d | 20 66 61 6c 73 65 3b 0d |Active =| false;.|
|00005120| 0a 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00005130| 0a 09 7d 0d 0a 09 72 65 | 74 75 72 6e 20 53 75 70 |..}...re|turn Sup|
|00005140| 65 72 2e 54 6f 6f 4d 61 | 6e 79 42 6f 74 73 28 42 |er.TooMa|nyBots(B|
|00005150| 6f 74 54 6f 52 65 6d 6f | 76 65 29 3b 0d 0a 7d 0d |otToRemo|ve);..}.|
|00005160| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 46 6f 72 63 |...funct|ion Forc|
|00005170| 65 41 64 64 42 6f 74 28 | 29 0d 0a 7b 0d 0a 20 20 |eAddBot(|)..{.. |
|00005180| 20 20 2f 2f 20 61 64 64 | 20 62 6f 74 20 64 75 72 | // add| bot dur|
|00005190| 69 6e 67 20 67 61 6d 65 | 70 6c 61 79 0d 0a 20 20 |ing game|play.. |
|000051a0| 20 20 69 66 20 28 20 4c | 65 76 65 6c 2e 4e 65 74 | if ( L|evel.Net|
|000051b0| 4d 6f 64 65 20 21 3d 20 | 4e 4d 5f 53 74 61 6e 64 |Mode != |NM_Stand|
|000051c0| 61 6c 6f 6e 65 20 29 0d | 0a 20 20 20 20 20 20 20 |alone ).|. |
|000051d0| 20 4d 69 6e 50 6c 61 79 | 65 72 73 20 3d 20 4d 61 | MinPlay|ers = Ma|
|000051e0| 78 28 4d 69 6e 50 6c 61 | 79 65 72 73 2b 31 2c 20 |x(MinPla|yers+1, |
|000051f0| 4e 75 6d 50 6c 61 79 65 | 72 73 20 2b 20 4e 75 6d |NumPlaye|rs + Num|
|00005200| 42 6f 74 73 20 2b 20 31 | 29 3b 0d 0a 20 20 20 20 |Bots + 1|);.. |
|00005210| 41 64 64 42 6f 74 28 29 | 3b 0d 0a 7d 0d 0a 0d 0a |AddBot()|;..}....|
|00005220| 66 75 6e 63 74 69 6f 6e | 20 62 6f 6f 6c 20 41 64 |function| bool Ad|
|00005230| 64 42 6f 74 28 6f 70 74 | 69 6f 6e 61 6c 20 73 74 |dBot(opt|ional st|
|00005240| 72 69 6e 67 20 62 6f 74 | 4e 61 6d 65 29 0d 0a 7b |ring bot|Name)..{|
|00005250| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 42 6f 74 20 |.. lo|cal Bot |
|00005260| 4e 65 77 42 6f 74 3b 0d | 0a 0d 0a 20 20 20 20 4e |NewBot;.|... N|
|00005270| 65 77 42 6f 74 20 3d 20 | 53 70 61 77 6e 42 6f 74 |ewBot = |SpawnBot|
|00005280| 28 62 6f 74 4e 61 6d 65 | 29 3b 0d 0a 20 20 20 20 |(botName|);.. |
|00005290| 69 66 20 28 20 4e 65 77 | 42 6f 74 20 3d 3d 20 4e |if ( New|Bot == N|
|000052a0| 6f 6e 65 20 29 0d 0a 20 | 20 20 20 7b 0d 0a 20 20 |one ).. | {.. |
|000052b0| 20 20 20 20 20 20 77 61 | 72 6e 28 22 46 61 69 6c | wa|rn("Fail|
|000052c0| 65 64 20 74 6f 20 73 70 | 61 77 6e 20 62 6f 74 2e |ed to sp|awn bot.|
|000052d0| 22 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 72 65 74 |");.. | ret|
|000052e0| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 20 20 20 20 |urn fals|e;.. |
|000052f0| 7d 0d 0a 20 20 20 20 2f | 2f 20 62 72 6f 61 64 63 |}.. /|/ broadc|
|00005300| 61 73 74 20 61 20 77 65 | 6c 63 6f 6d 65 20 6d 65 |ast a we|lcome me|
|00005310| 73 73 61 67 65 2e 0d 0a | 20 20 20 20 42 72 6f 61 |ssage...| Broa|
|00005320| 64 63 61 73 74 4c 6f 63 | 61 6c 69 7a 65 64 4d 65 |dcastLoc|alizedMe|
|00005330| 73 73 61 67 65 28 47 61 | 6d 65 4d 65 73 73 61 67 |ssage(Ga|meMessag|
|00005340| 65 43 6c 61 73 73 2c 20 | 31 2c 20 4e 65 77 42 6f |eClass, |1, NewBo|
|00005350| 74 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |t.Player|Replicat|
|00005360| 69 6f 6e 49 6e 66 6f 29 | 3b 0d 0a 0d 0a 20 20 20 |ionInfo)|;.... |
|00005370| 20 4e 65 77 42 6f 74 2e | 50 6c 61 79 65 72 52 65 | NewBot.|PlayerRe|
|00005380| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 50 6c |plicatio|nInfo.Pl|
|00005390| 61 79 65 72 49 44 20 3d | 20 43 75 72 72 65 6e 74 |ayerID =| Current|
|000053a0| 49 44 2b 2b 3b 0d 0a 20 | 20 20 20 4e 75 6d 42 6f |ID++;.. | NumBo|
|000053b0| 74 73 2b 2b 3b 0d 0a 20 | 20 20 20 69 66 20 28 20 |ts++;.. | if ( |
|000053c0| 4c 65 76 65 6c 2e 4e 65 | 74 4d 6f 64 65 20 3d 3d |Level.Ne|tMode ==|
|000053d0| 20 4e 4d 5f 53 74 61 6e | 64 61 6c 6f 6e 65 20 29 | NM_Stan|dalone )|
|000053e0| 0d 0a 09 09 52 65 73 74 | 61 72 74 50 6c 61 79 65 |....Rest|artPlaye|
|000053f0| 72 28 4e 65 77 42 6f 74 | 29 3b 0d 0a 09 65 6c 73 |r(NewBot|);...els|
|00005400| 65 0d 0a 09 09 4e 65 77 | 42 6f 74 2e 47 6f 74 6f |e....New|Bot.Goto|
|00005410| 53 74 61 74 65 28 27 44 | 65 61 64 27 2c 27 4d 50 |State('D|ead','MP|
|00005420| 53 74 61 72 74 27 29 3b | 0d 0a 0d 0a 20 20 20 20 |Start');|.... |
|00005430| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 0d 0a 7d 0d |return t|rue;..}.|
|00005440| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 41 64 64 44 |...funct|ion AddD|
|00005450| 65 66 61 75 6c 74 49 6e | 76 65 6e 74 6f 72 79 28 |efaultIn|ventory(|
|00005460| 20 70 61 77 6e 20 50 6c | 61 79 65 72 50 61 77 6e | pawn Pl|ayerPawn|
|00005470| 20 29 0d 0a 7b 0d 0a 20 | 20 20 20 69 66 20 28 20 | )..{.. | if ( |
|00005480| 55 6e 72 65 61 6c 50 61 | 77 6e 28 50 6c 61 79 65 |UnrealPa|wn(Playe|
|00005490| 72 50 61 77 6e 29 20 21 | 3d 20 4e 6f 6e 65 20 29 |rPawn) !|= None )|
|000054a0| 0d 0a 20 20 20 20 20 20 | 20 20 55 6e 72 65 61 6c |.. | Unreal|
|000054b0| 50 61 77 6e 28 50 6c 61 | 79 65 72 50 61 77 6e 29 |Pawn(Pla|yerPawn)|
|000054c0| 2e 41 64 64 44 65 66 61 | 75 6c 74 49 6e 76 65 6e |.AddDefa|ultInven|
|000054d0| 74 6f 72 79 28 29 3b 0d | 0a 20 20 20 20 53 65 74 |tory();.|. Set|
|000054e0| 50 6c 61 79 65 72 44 65 | 66 61 75 6c 74 73 28 50 |PlayerDe|faults(P|
|000054f0| 6c 61 79 65 72 50 61 77 | 6e 29 3b 0d 0a 7d 0d 0a |layerPaw|n);..}..|
|00005500| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|00005510| 43 61 6e 53 70 65 63 74 | 61 74 65 28 20 50 6c 61 |CanSpect|ate( Pla|
|00005520| 79 65 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 56 69 |yerContr|oller Vi|
|00005530| 65 77 65 72 2c 20 62 6f | 6f 6c 20 62 4f 6e 6c 79 |ewer, bo|ol bOnly|
|00005540| 53 70 65 63 74 61 74 6f | 72 2c 20 61 63 74 6f 72 |Spectato|r, actor|
|00005550| 20 56 69 65 77 54 61 72 | 67 65 74 20 29 0d 0a 7b | ViewTar|get )..{|
|00005560| 0d 0a 20 20 20 20 69 66 | 20 28 20 56 69 65 77 54 |.. if| ( ViewT|
|00005570| 61 72 67 65 74 20 3d 3d | 20 4e 6f 6e 65 20 29 0d |arget ==| None ).|
|00005580| 0a 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 20 |. | return |
|00005590| 66 61 6c 73 65 3b 0d 0a | 09 69 66 20 28 20 43 6f |false;..|.if ( Co|
|000055a0| 6e 74 72 6f 6c 6c 65 72 | 28 56 69 65 77 54 61 72 |ntroller|(ViewTar|
|000055b0| 67 65 74 29 20 21 3d 20 | 4e 6f 6e 65 20 29 0d 0a |get) != |None )..|
|000055c0| 09 09 72 65 74 75 72 6e | 20 28 20 28 43 6f 6e 74 |..return| ( (Cont|
|000055d0| 72 6f 6c 6c 65 72 28 56 | 69 65 77 54 61 72 67 65 |roller(V|iewTarge|
|000055e0| 74 29 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |t).Playe|rReplica|
|000055f0| 74 69 6f 6e 49 6e 66 6f | 20 21 3d 20 4e 6f 6e 65 |tionInfo| != None|
|00005600| 29 0d 0a 09 09 09 09 26 | 26 20 21 43 6f 6e 74 72 |)......&|& !Contr|
|00005610| 6f 6c 6c 65 72 28 56 69 | 65 77 54 61 72 67 65 74 |oller(Vi|ewTarget|
|00005620| 29 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |).Player|Replicat|
|00005630| 69 6f 6e 49 6e 66 6f 2e | 62 4f 6e 6c 79 53 70 65 |ionInfo.|bOnlySpe|
|00005640| 63 74 61 74 6f 72 20 29 | 3b 0d 0a 20 20 20 20 72 |ctator )|;.. r|
|00005650| 65 74 75 72 6e 20 28 20 | 28 4c 65 76 65 6c 2e 4e |eturn ( |(Level.N|
|00005660| 65 74 4d 6f 64 65 20 3d | 3d 20 4e 4d 5f 53 74 61 |etMode =|= NM_Sta|
|00005670| 6e 64 61 6c 6f 6e 65 29 | 20 7c 7c 20 62 4f 6e 6c |ndalone)| || bOnl|
|00005680| 79 53 70 65 63 74 61 74 | 6f 72 20 29 3b 0d 0a 7d |ySpectat|or );..}|
|00005690| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |....func|tion boo|
|000056a0| 6c 20 53 68 6f 75 6c 64 | 52 65 73 70 61 77 6e 28 |l Should|Respawn(|
|000056b0| 50 69 63 6b 75 70 20 4f | 74 68 65 72 29 0d 0a 7b |Pickup O|ther)..{|
|000056c0| 0d 0a 20 20 20 20 72 65 | 74 75 72 6e 20 28 20 4f |.. re|turn ( O|
|000056d0| 74 68 65 72 2e 52 65 53 | 70 61 77 6e 54 69 6d 65 |ther.ReS|pawnTime|
|000056e0| 21 3d 30 2e 30 20 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 |!=0.0 );|..}....f|
|000056f0| 75 6e 63 74 69 6f 6e 20 | 43 68 61 6e 67 65 4e 61 |unction |ChangeNa|
|00005700| 6d 65 28 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 4f 74 |me(Contr|oller Ot|
|00005710| 68 65 72 2c 20 73 74 72 | 69 6e 67 20 53 2c 20 62 |her, str|ing S, b|
|00005720| 6f 6f 6c 20 62 4e 61 6d | 65 43 68 61 6e 67 65 29 |ool bNam|eChange)|
|00005730| 0d 0a 7b 0d 0a 20 20 20 | 20 6c 6f 63 61 6c 20 43 |..{.. | local C|
|00005740| 6f 6e 74 72 6f 6c 6c 65 | 72 20 41 50 6c 61 79 65 |ontrolle|r APlaye|
|00005750| 72 2c 43 2c 20 50 3b 0d | 0a 0d 0a 20 20 20 20 69 |r,C, P;.|... i|
|00005760| 66 20 28 20 53 20 3d 3d | 20 22 22 20 29 0d 0a 20 |f ( S ==| "" ).. |
|00005770| 20 20 20 20 20 20 20 72 | 65 74 75 72 6e 3b 0d 0a | r|eturn;..|
|00005780| 0d 0a 09 53 20 3d 20 53 | 74 72 69 70 43 6f 6c 6f |...S = S|tripColo|
|00005790| 72 28 73 29 3b 09 2f 2f | 20 53 74 69 70 20 6f 75 |r(s);.//| Stip ou|
|000057a0| 74 20 63 6f 6c 6f 72 20 | 63 6f 64 65 73 0d 0a 0d |t color |codes...|
|000057b0| 0a 20 20 20 20 69 66 20 | 28 4f 74 68 65 72 2e 50 |. if |(Other.P|
|000057c0| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|000057d0| 49 6e 66 6f 2e 70 6c 61 | 79 65 72 6e 61 6d 65 7e |Info.pla|yername~|
|000057e0| 3d 53 29 0d 0a 20 20 20 | 20 20 20 20 20 72 65 74 |=S).. | ret|
|000057f0| 75 72 6e 3b 0d 0a 0d 0a | 09 53 20 3d 20 4c 65 66 |urn;....|.S = Lef|
|00005800| 74 28 53 2c 32 30 29 3b | 0d 0a 20 20 20 20 52 65 |t(S,20);|.. Re|
|00005810| 70 6c 61 63 65 54 65 78 | 74 28 53 2c 20 22 20 22 |placeTex|t(S, " "|
|00005820| 2c 20 22 5f 22 29 3b 0d | 0a 0d 0a 09 69 66 20 28 |, "_");.|....if (|
|00005830| 20 62 45 70 69 63 4e 61 | 6d 65 73 20 26 26 20 28 | bEpicNa|mes && (|
|00005840| 42 6f 74 28 4f 74 68 65 | 72 29 20 21 3d 20 4e 6f |Bot(Othe|r) != No|
|00005850| 6e 65 29 20 29 0d 0a 09 | 7b 0d 0a 09 09 69 66 20 |ne) )...|{....if |
|00005860| 28 20 54 6f 74 61 6c 45 | 70 69 63 20 3c 20 32 31 |( TotalE|pic < 21|
|00005870| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 53 20 3d 20 | )....{.|....S = |
|00005880| 45 70 69 63 4e 61 6d 65 | 73 5b 45 70 69 63 4f 66 |EpicName|s[EpicOf|
|00005890| 66 73 65 74 20 25 20 32 | 31 5d 3b 0d 0a 09 09 09 |fset % 2|1];.....|
|000058a0| 45 70 69 63 4f 66 66 73 | 65 74 2b 2b 3b 0d 0a 09 |EpicOffs|et++;...|
|000058b0| 09 09 54 6f 74 61 6c 45 | 70 69 63 2b 2b 3b 0d 0a |..TotalE|pic++;..|
|000058c0| 09 09 7d 0d 0a 09 09 65 | 6c 73 65 0d 0a 09 09 7b |..}....e|lse....{|
|000058d0| 0d 0a 09 09 09 53 20 3d | 20 4e 61 6d 65 50 72 65 |.....S =| NamePre|
|000058e0| 66 69 78 65 73 5b 4e 61 | 6d 65 4e 75 6d 62 65 72 |fixes[Na|meNumber|
|000058f0| 25 31 30 5d 24 22 43 6c | 69 66 66 79 42 22 24 4e |%10]$"Cl|iffyB"$N|
|00005900| 61 6d 65 53 75 66 66 69 | 78 65 73 5b 4e 61 6d 65 |ameSuffi|xes[Name|
|00005910| 4e 75 6d 62 65 72 25 31 | 30 5d 3b 0d 0a 09 09 09 |Number%1|0];.....|
|00005920| 4e 61 6d 65 4e 75 6d 62 | 65 72 2b 2b 3b 0d 0a 09 |NameNumb|er++;...|
|00005930| 09 7d 0d 0a 09 7d 0d 0a | 0d 0a 20 20 20 20 66 6f |.}...}..|.. fo|
|00005940| 72 28 20 41 50 6c 61 79 | 65 72 3d 4c 65 76 65 6c |r( APlay|er=Level|
|00005950| 2e 43 6f 6e 74 72 6f 6c | 6c 65 72 4c 69 73 74 3b |.Control|lerList;|
|00005960| 20 41 50 6c 61 79 65 72 | 21 3d 4e 6f 6e 65 3b 20 | APlayer|!=None; |
|00005970| 41 50 6c 61 79 65 72 3d | 41 50 6c 61 79 65 72 2e |APlayer=|APlayer.|
|00005980| 6e 65 78 74 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 29 |nextCont|roller )|
|00005990| 0d 0a 20 20 20 20 20 20 | 20 20 69 66 20 28 20 41 |.. | if ( A|
|000059a0| 50 6c 61 79 65 72 2e 62 | 49 73 50 6c 61 79 65 72 |Player.b|IsPlayer|
|000059b0| 20 26 26 20 28 41 50 6c | 61 79 65 72 2e 50 6c 61 | && (APl|ayer.Pla|
|000059c0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|000059d0| 66 6f 2e 70 6c 61 79 65 | 72 6e 61 6d 65 7e 3d 53 |fo.playe|rname~=S|
|000059e0| 29 20 29 0d 0a 20 20 20 | 20 20 20 20 20 7b 0d 0a |) ).. | {..|
|000059f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 66 20 28 | | if (|
|00005a00| 20 4f 74 68 65 72 2e 49 | 73 41 28 27 50 6c 61 79 | Other.I|sA('Play|
|00005a10| 65 72 43 6f 6e 74 72 6f | 6c 6c 65 72 27 29 20 29 |erContro|ller') )|
|00005a20| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 7b 0d |.. | {.|
|00005a30| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005a40| 20 50 6c 61 79 65 72 43 | 6f 6e 74 72 6f 6c 6c 65 | PlayerC|ontrolle|
|00005a50| 72 28 4f 74 68 65 72 29 | 2e 52 65 63 65 69 76 65 |r(Other)|.Receive|
|00005a60| 4c 6f 63 61 6c 69 7a 65 | 64 4d 65 73 73 61 67 65 |Localize|dMessage|
|00005a70| 28 20 47 61 6d 65 4d 65 | 73 73 61 67 65 43 6c 61 |( GameMe|ssageCla|
|00005a80| 73 73 2c 20 38 20 29 3b | 0d 0a 09 09 09 09 72 65 |ss, 8 );|......re|
|00005a90| 74 75 72 6e 3b 0d 0a 09 | 09 09 7d 0d 0a 09 09 09 |turn;...|..}.....|
|00005aa0| 65 6c 73 65 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |else....|.{......|
|00005ab0| 69 66 20 28 20 4f 74 68 | 65 72 2e 50 6c 61 79 65 |if ( Oth|er.Playe|
|00005ac0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00005ad0| 2e 62 49 73 46 65 6d 61 | 6c 65 20 29 0d 0a 09 09 |.bIsFema|le )....|
|00005ae0| 09 09 7b 0d 0a 09 09 09 | 09 09 53 20 3d 20 46 65 |..{.....|..S = Fe|
|00005af0| 6d 61 6c 65 42 61 63 6b | 75 70 4e 61 6d 65 73 5b |maleBack|upNames[|
|00005b00| 46 65 6d 61 6c 65 42 61 | 63 6b 75 70 4e 61 6d 65 |FemaleBa|ckupName|
|00005b10| 4f 66 66 73 65 74 25 33 | 32 5d 3b 0d 0a 09 09 09 |Offset%3|2];.....|
|00005b20| 09 09 46 65 6d 61 6c 65 | 42 61 63 6b 75 70 4e 61 |..Female|BackupNa|
|00005b30| 6d 65 4f 66 66 73 65 74 | 2b 2b 3b 0d 0a 09 09 09 |meOffset|++;.....|
|00005b40| 09 7d 0d 0a 09 09 09 09 | 65 6c 73 65 0d 0a 09 09 |.}......|else....|
|00005b50| 09 09 7b 0d 0a 09 09 09 | 09 09 53 20 3d 20 4d 61 |..{.....|..S = Ma|
|00005b60| 6c 65 42 61 63 6b 75 70 | 4e 61 6d 65 73 5b 4d 61 |leBackup|Names[Ma|
|00005b70| 6c 65 42 61 63 6b 75 70 | 4e 61 6d 65 4f 66 66 73 |leBackup|NameOffs|
|00005b80| 65 74 25 33 32 5d 3b 0d | 0a 09 09 09 09 09 4d 61 |et%32];.|......Ma|
|00005b90| 6c 65 42 61 63 6b 75 70 | 4e 61 6d 65 4f 66 66 73 |leBackup|NameOffs|
|00005ba0| 65 74 2b 2b 3b 0d 0a 09 | 09 09 09 7d 0d 0a 09 09 |et++;...|...}....|
|00005bb0| 09 09 66 6f 72 28 20 50 | 3d 4c 65 76 65 6c 2e 43 |..for( P|=Level.C|
|00005bc0| 6f 6e 74 72 6f 6c 6c 65 | 72 4c 69 73 74 3b 20 50 |ontrolle|rList; P|
|00005bd0| 21 3d 4e 6f 6e 65 3b 20 | 50 3d 50 2e 6e 65 78 74 |!=None; |P=P.next|
|00005be0| 43 6f 6e 74 72 6f 6c 6c | 65 72 20 29 0d 0a 09 09 |Controll|er )....|
|00005bf0| 09 09 09 69 66 20 28 20 | 50 2e 62 49 73 50 6c 61 |...if ( |P.bIsPla|
|00005c00| 79 65 72 20 26 26 20 28 | 50 2e 50 6c 61 79 65 72 |yer && (|P.Player|
|00005c10| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00005c20| 70 6c 61 79 65 72 6e 61 | 6d 65 7e 3d 53 29 20 29 |playerna|me~=S) )|
|00005c30| 0d 0a 09 09 09 09 09 7b | 0d 0a 09 09 09 09 09 09 |.......{|........|
|00005c40| 53 20 3d 20 4e 61 6d 65 | 50 72 65 66 69 78 65 73 |S = Name|Prefixes|
|00005c50| 5b 4e 61 6d 65 4e 75 6d | 62 65 72 25 31 30 5d 24 |[NameNum|ber%10]$|
|00005c60| 53 24 4e 61 6d 65 53 75 | 66 66 69 78 65 73 5b 4e |S$NameSu|ffixes[N|
|00005c70| 61 6d 65 4e 75 6d 62 65 | 72 25 31 30 5d 3b 0d 0a |ameNumbe|r%10];..|
|00005c80| 09 09 09 09 09 09 4e 61 | 6d 65 4e 75 6d 62 65 72 |......Na|meNumber|
|00005c90| 2b 2b 3b 0d 0a 09 09 09 | 09 09 09 62 72 65 61 6b |++;.....|...break|
|00005ca0| 3b 0d 0a 09 09 09 09 09 | 7d 0d 0a 09 09 09 09 62 |;.......|}......b|
|00005cb0| 72 65 61 6b 3b 0d 0a 09 | 09 09 7d 0d 0a 20 20 20 |reak;...|..}.. |
|00005cc0| 20 20 20 20 20 20 20 20 | 20 53 20 3d 20 4e 61 6d | | S = Nam|
|00005cd0| 65 50 72 65 66 69 78 65 | 73 5b 4e 61 6d 65 4e 75 |ePrefixe|s[NameNu|
|00005ce0| 6d 62 65 72 25 31 30 5d | 24 53 24 4e 61 6d 65 53 |mber%10]|$S$NameS|
|00005cf0| 75 66 66 69 78 65 73 5b | 4e 61 6d 65 4e 75 6d 62 |uffixes[|NameNumb|
|00005d00| 65 72 25 31 30 5d 3b 0d | 0a 20 20 20 20 20 20 20 |er%10];.|. |
|00005d10| 20 20 20 20 20 4e 61 6d | 65 4e 75 6d 62 65 72 2b | Nam|eNumber+|
|00005d20| 2b 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |+;.. | |
|00005d30| 62 72 65 61 6b 3b 0d 0a | 20 20 20 20 20 20 20 20 |break;..| |
|00005d40| 7d 0d 0a 0d 0a 09 69 66 | 28 20 62 4e 61 6d 65 43 |}.....if|( bNameC|
|00005d50| 68 61 6e 67 65 20 29 0d | 0a 09 09 47 61 6d 65 45 |hange ).|...GameE|
|00005d60| 76 65 6e 74 28 22 4e 61 | 6d 65 43 68 61 6e 67 65 |vent("Na|meChange|
|00005d70| 22 2c 73 2c 4f 74 68 65 | 72 2e 50 6c 61 79 65 72 |",s,Othe|r.Player|
|00005d80| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 29 |Replicat|ionInfo)|
|00005d90| 3b 0d 0a 0d 0a 09 69 66 | 20 28 20 53 20 7e 3d 20 |;.....if| ( S ~= |
|00005da0| 22 43 6c 69 66 66 79 42 | 22 20 29 0d 0a 09 09 62 |"CliffyB|" )....b|
|00005db0| 45 70 69 63 4e 61 6d 65 | 73 20 3d 20 74 72 75 65 |EpicName|s = true|
|00005dc0| 3b 0d 0a 20 20 20 20 4f | 74 68 65 72 2e 50 6c 61 |;.. O|ther.Pla|
|00005dd0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00005de0| 66 6f 2e 53 65 74 50 6c | 61 79 65 72 4e 61 6d 65 |fo.SetPl|ayerName|
|00005df0| 28 53 29 3b 0d 0a 20 20 | 20 20 2f 2f 20 6e 6f 74 |(S);.. | // not|
|00005e00| 69 66 79 20 6c 6f 63 61 | 6c 20 70 6c 61 79 65 72 |ify loca|l player|
|00005e10| 73 0d 0a 20 20 20 20 69 | 66 20 20 28 20 62 4e 61 |s.. i|f ( bNa|
|00005e20| 6d 65 43 68 61 6e 67 65 | 20 29 0d 0a 09 09 66 6f |meChange| )....fo|
|00005e30| 72 20 28 20 43 3d 4c 65 | 76 65 6c 2e 43 6f 6e 74 |r ( C=Le|vel.Cont|
|00005e40| 72 6f 6c 6c 65 72 4c 69 | 73 74 3b 20 43 21 3d 4e |rollerLi|st; C!=N|
|00005e50| 6f 6e 65 3b 20 43 3d 43 | 2e 4e 65 78 74 43 6f 6e |one; C=C|.NextCon|
|00005e60| 74 72 6f 6c 6c 65 72 20 | 29 0d 0a 09 09 09 69 66 |troller |).....if|
|00005e70| 20 28 20 28 50 6c 61 79 | 65 72 43 6f 6e 74 72 6f | ( (Play|erContro|
|00005e80| 6c 6c 65 72 28 43 29 20 | 21 3d 20 4e 6f 6e 65 29 |ller(C) |!= None)|
|00005e90| 20 26 26 20 28 56 69 65 | 77 70 6f 72 74 28 50 6c | && (Vie|wport(Pl|
|00005ea0| 61 79 65 72 43 6f 6e 74 | 72 6f 6c 6c 65 72 28 43 |ayerCont|roller(C|
|00005eb0| 29 2e 50 6c 61 79 65 72 | 29 20 21 3d 20 4e 6f 6e |).Player|) != Non|
|00005ec0| 65 29 20 29 0d 0a 09 09 | 09 09 50 6c 61 79 65 72 |e) )....|..Player|
|00005ed0| 43 6f 6e 74 72 6f 6c 6c | 65 72 28 43 29 2e 52 65 |Controll|er(C).Re|
|00005ee0| 63 65 69 76 65 4c 6f 63 | 61 6c 69 7a 65 64 4d 65 |ceiveLoc|alizedMe|
|00005ef0| 73 73 61 67 65 28 20 63 | 6c 61 73 73 27 47 61 6d |ssage( c|lass'Gam|
|00005f00| 65 4d 65 73 73 61 67 65 | 27 2c 20 32 2c 20 4f 74 |eMessage|', 2, Ot|
|00005f10| 68 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |her.Play|erReplic|
|00005f20| 61 74 69 6f 6e 49 6e 66 | 6f 20 29 3b 0d 0a 7d 0d |ationInf|o );..}.|
|00005f30| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 62 6f 6f 6c |...funct|ion bool|
|00005f40| 20 42 65 63 6f 6d 65 53 | 70 65 63 74 61 74 6f 72 | BecomeS|pectator|
|00005f50| 28 50 6c 61 79 65 72 43 | 6f 6e 74 72 6f 6c 6c 65 |(PlayerC|ontrolle|
|00005f60| 72 20 50 29 0d 0a 7b 0d | 0a 09 69 66 20 28 20 21 |r P)..{.|..if ( !|
|00005f70| 53 75 70 65 72 2e 42 65 | 63 6f 6d 65 53 70 65 63 |Super.Be|comeSpec|
|00005f80| 74 61 74 6f 72 28 50 29 | 20 29 0d 0a 09 09 72 65 |tator(P)| )....re|
|00005f90| 74 75 72 6e 20 66 61 6c | 73 65 3b 0d 0a 0d 0a 20 |turn fal|se;.... |
|00005fa0| 20 20 20 69 66 20 28 20 | 21 62 4b 69 6c 6c 42 6f | if ( |!bKillBo|
|00005fb0| 74 73 20 29 0d 0a 09 09 | 52 65 6d 61 69 6e 69 6e |ts )....|Remainin|
|00005fc0| 67 42 6f 74 73 2b 2b 3b | 0d 0a 20 20 20 20 69 66 |gBots++;|.. if|
|00005fd0| 20 28 20 21 4e 65 65 64 | 50 6c 61 79 65 72 73 28 | ( !Need|Players(|
|00005fe0| 29 20 7c 7c 20 41 64 64 | 42 6f 74 28 29 20 29 0d |) || Add|Bot() ).|
|00005ff0| 0a 20 20 20 20 20 20 20 | 20 52 65 6d 61 69 6e 69 |. | Remaini|
|00006000| 6e 67 42 6f 74 73 2d 2d | 3b 0d 0a 09 72 65 74 75 |ngBots--|;...retu|
|00006010| 72 6e 20 74 72 75 65 3b | 0d 0a 7d 0d 0a 0d 0a 66 |rn true;|..}....f|
|00006020| 75 6e 63 74 69 6f 6e 20 | 62 6f 6f 6c 20 41 6c 6c |unction |bool All|
|00006030| 6f 77 42 65 63 6f 6d 65 | 41 63 74 69 76 65 50 6c |owBecome|ActivePl|
|00006040| 61 79 65 72 28 50 6c 61 | 79 65 72 43 6f 6e 74 72 |ayer(Pla|yerContr|
|00006050| 6f 6c 6c 65 72 20 50 29 | 0d 0a 7b 0d 0a 09 69 66 |oller P)|..{...if|
|00006060| 20 28 20 53 75 70 65 72 | 2e 41 6c 6c 6f 77 42 65 | ( Super|.AllowBe|
|00006070| 63 6f 6d 65 41 63 74 69 | 76 65 50 6c 61 79 65 72 |comeActi|vePlayer|
|00006080| 28 50 29 20 29 0d 0a 09 | 7b 0d 0a 09 09 69 66 20 |(P) )...|{....if |
|00006090| 28 20 28 4c 65 76 65 6c | 2e 4e 65 74 4d 6f 64 65 |( (Level|.NetMode|
|000060a0| 20 3d 3d 20 4e 4d 5f 53 | 74 61 6e 64 61 6c 6f 6e | == NM_S|tandalon|
|000060b0| 65 29 20 26 26 20 28 4e | 75 6d 42 6f 74 73 20 3e |e) && (N|umBots >|
|000060c0| 20 49 6e 69 74 69 61 6c | 42 6f 74 73 29 20 29 0d | Initial|Bots) ).|
|000060d0| 0a 09 09 7b 0d 0a 09 09 | 09 52 65 6d 61 69 6e 69 |...{....|.Remaini|
|000060e0| 6e 67 42 6f 74 73 2d 2d | 3b 0d 0a 09 09 09 62 50 |ngBots--|;.....bP|
|000060f0| 6c 61 79 65 72 42 65 63 | 61 6d 65 41 63 74 69 76 |layerBec|ameActiv|
|00006100| 65 20 3d 20 74 72 75 65 | 3b 0d 0a 09 09 7d 0d 0a |e = true|;....}..|
|00006110| 09 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 0d 0a |..return| true;..|
|00006120| 09 7d 0d 0a 09 72 65 74 | 75 72 6e 20 66 61 6c 73 |.}...ret|urn fals|
|00006130| 65 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |e;..}...|.functio|
|00006140| 6e 20 4c 6f 67 6f 75 74 | 28 63 6f 6e 74 72 6f 6c |n Logout|(control|
|00006150| 6c 65 72 20 45 78 69 74 | 69 6e 67 29 0d 0a 7b 0d |ler Exit|ing)..{.|
|00006160| 0a 20 20 20 20 53 75 70 | 65 72 2e 4c 6f 67 6f 75 |. Sup|er.Logou|
|00006170| 74 28 45 78 69 74 69 6e | 67 29 3b 0d 0a 20 20 20 |t(Exitin|g);.. |
|00006180| 20 69 66 20 28 20 45 78 | 69 74 69 6e 67 2e 49 73 | if ( Ex|iting.Is|
|00006190| 41 28 27 42 6f 74 27 29 | 20 29 0d 0a 20 20 20 20 |A('Bot')| ).. |
|000061a0| 20 20 20 20 4e 75 6d 42 | 6f 74 73 2d 2d 3b 0d 0a | NumB|ots--;..|
|000061b0| 20 20 20 20 69 66 20 28 | 20 21 62 4b 69 6c 6c 42 | if (| !bKillB|
|000061c0| 6f 74 73 20 29 0d 0a 09 | 09 52 65 6d 61 69 6e 69 |ots )...|.Remaini|
|000061d0| 6e 67 42 6f 74 73 2b 2b | 3b 0d 0a 20 20 20 20 69 |ngBots++|;.. i|
|000061e0| 66 20 28 20 21 4e 65 65 | 64 50 6c 61 79 65 72 73 |f ( !Nee|dPlayers|
|000061f0| 28 29 20 7c 7c 20 41 64 | 64 42 6f 74 28 29 20 29 |() || Ad|dBot() )|
|00006200| 0d 0a 20 20 20 20 20 20 | 20 20 52 65 6d 61 69 6e |.. | Remain|
|00006210| 69 6e 67 42 6f 74 73 2d | 2d 3b 0d 0a 20 20 20 20 |ingBots-|-;.. |
|00006220| 69 66 20 28 20 4d 61 78 | 4c 69 76 65 73 20 3e 20 |if ( Max|Lives > |
|00006230| 30 20 29 0d 0a 20 20 20 | 20 20 20 20 20 20 43 68 |0 ).. | Ch|
|00006240| 65 63 6b 4d 61 78 4c 69 | 76 65 73 28 6e 6f 6e 65 |eckMaxLi|ves(none|
|00006250| 29 3b 0d 0a 09 2f 2f 56 | 6f 74 69 6e 67 48 61 6e |);...//V|otingHan|
|00006260| 64 6c 65 72 2e 50 6c 61 | 79 65 72 45 78 69 74 28 |dler.Pla|yerExit(|
|00006270| 45 78 69 74 69 6e 67 29 | 3b 0d 0a 7d 0d 0a 0d 0a |Exiting)|;..}....|
|00006280| 66 75 6e 63 74 69 6f 6e | 20 62 6f 6f 6c 20 4e 65 |function| bool Ne|
|00006290| 65 64 50 6c 61 79 65 72 | 73 28 29 0d 0a 7b 0d 0a |edPlayer|s()..{..|
|000062a0| 20 20 20 20 69 66 20 28 | 20 4c 65 76 65 6c 2e 4e | if (| Level.N|
|000062b0| 65 74 4d 6f 64 65 20 3d | 3d 20 4e 4d 5f 53 74 61 |etMode =|= NM_Sta|
|000062c0| 6e 64 61 6c 6f 6e 65 20 | 29 0d 0a 20 20 20 20 20 |ndalone |).. |
|000062d0| 20 20 20 72 65 74 75 72 | 6e 20 28 20 52 65 6d 61 | retur|n ( Rema|
|000062e0| 69 6e 69 6e 67 42 6f 74 | 73 20 3e 20 30 20 29 3b |iningBot|s > 0 );|
|000062f0| 0d 0a 20 20 20 20 69 66 | 20 28 20 62 4d 75 73 74 |.. if| ( bMust|
|00006300| 4a 6f 69 6e 42 65 66 6f | 72 65 53 74 61 72 74 20 |JoinBefo|reStart |
|00006310| 29 0d 0a 20 20 20 20 20 | 20 20 20 72 65 74 75 72 |).. | retur|
|00006320| 6e 20 66 61 6c 73 65 3b | 0d 0a 20 20 20 20 69 66 |n false;|.. if|
|00006330| 20 28 20 62 50 6c 61 79 | 65 72 73 56 73 42 6f 74 | ( bPlay|ersVsBot|
|00006340| 73 20 29 0d 0a 09 09 72 | 65 74 75 72 6e 20 28 20 |s )....r|eturn ( |
|00006350| 4e 75 6d 42 6f 74 73 20 | 3c 20 4d 69 6e 28 31 36 |NumBots |< Min(16|
|00006360| 2c 42 6f 74 52 61 74 69 | 6f 2a 4e 75 6d 50 6c 61 |,BotRati|o*NumPla|
|00006370| 79 65 72 73 29 20 29 3b | 0d 0a 20 20 20 20 72 65 |yers) );|.. re|
|00006380| 74 75 72 6e 20 28 4e 75 | 6d 50 6c 61 79 65 72 73 |turn (Nu|mPlayers|
|00006390| 20 2b 20 4e 75 6d 42 6f | 74 73 20 3c 20 4d 69 6e | + NumBo|ts < Min|
|000063a0| 50 6c 61 79 65 72 73 29 | 3b 0d 0a 7d 0d 0a 0d 0a |Players)|;..}....|
|000063b0| 2f 2f 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |//------|--------|
|000063c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000063d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000063e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000063f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.